Skip to content

Add schema and streaming support - #1

Merged
kapilreddy merged 7 commits into
mainfrom
feature/malli-schema-support
Oct 31, 2025
Merged

kapilreddy merged 7 commits into
mainfrom
feature/malli-schema-support

Conversation

@kapilreddy

Copy link
Copy Markdown
Contributor

No description provided.

- Add Malli schema conversion functions (malli-type->str, malli-schema->field, malli-schema->fields)
- Add normalize-module to support both field vectors and Malli schemas
- Add input/output validation with Malli schemas (validate-input, validate-output)
- Update predict function to support Malli schemas with optional validation
- Add comprehensive test coverage for Malli functionality
- Add examples/malli_usage.clj with 8 usage examples
- Update README.md with Malli schema documentation
- Maintain backward compatibility with existing field-based modules
- All tests passing (10 tests, 86 assertions, 0 failures)
- Merge malli_usage.clj into basic_usage.clj
- Remove financial comparison examples
- Update README to reference single examples file
- All examples now in examples/basic_usage.clj
- Replace :type string field with :spec Malli spec field
- Remove separate :input-schema/:output-schema in favor of :spec in field definitions
- Update all field definitions to use :spec instead of :type
- Simplify API: fields now consistently use {:name :spec :description} format
- Update all tests to use new :spec format
- Update all examples to use new :spec format
- Update README with new :spec-based API
- All 6 tests passing (57 assertions, 0 failures)

This is a breaking change that simplifies the API and makes Malli specs
a first-class part of field definitions.
@kapilreddy
kapilreddy merged commit 26f34da into main Oct 31, 2025
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant