Changelog¶
The [!] sign marks the incompatible changes.
0.8¶
This release aim to improve the usability and flexibility. The declared schema
easily perambulate through with parent and root. This are set on any
child schema after the schema initialised. This improvement helps to build
complex schemas, complex dependency without context. You can also introduce
special behaviour like dialect which is any time gets its value from the
top level schema.
Features¶
- Add
loggerto SchemaAnytype introduced- Got rid of context argument
- The get_jsonschema gives back a Wrapper which contains the schema object itself as
originattribute- Default value handling
- Custom constraints introduced
- Mixin introduced to extend the functionality in any 3rd party module
- Make available the
parentandrootin any Schema
Fixes¶
- The excluded fields will be no shown up in the result
Minor changes¶
includehas been renamed toexclusive[!]dialectintroduced as Schema field- Using the class rather than instance of Schema is not supported [!]
- Password field introduced
- Email field introduced
- Version field introduced (future changes possible!)
0.7¶
This release a major release with lots of modification on API.
One of the main concept is decouple responsibilities of schema, means
serialisation, deserialisation, validation. Regarding this I removed the
load, dump, validate functions from schema. Also make possible the
further improvement the get_schema renamed to get_jsonschema.
Major improvements¶
JSONSchemaValidatorintroducedJSONReaderintroducedJSONFormReaderintroducedJSONWriterintroducedvalidateremoved fromSchema(and the whole validation) [!]loadremoved fromSchema[!]dumpremoved fromSchema[!]to_dictrenamed toto_raw[!]get_schemarenamed toget_jsonschema[!]- Changed to MIT license
Minor modifications¶
ValidationErrorsintroduced and has became the unified umbrella errorSchemaWriterandJSONSchemaWriterintroducedJSONSchemaDictValidatorintroduced (for dict based schemas)- Cover document changed regarding the new API
- Number types functionality extended
- String type functionality extended
- More tests for date and time related types
- Doc and test removed from build
- Changelog introduced