You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extend Property struct to support examples and handle complex additionalProperties (#37)
* Add examples field to Property conversion
Initializes the examples field as an empty vector when converting Attribute to schema::Property. This prepares the Property struct for future use of example values.
* Handle object type for additionalProperties in schema
Added custom deserializer to support 'additionalProperties' as an object in SchemaObject. Updated tests to cover this case and added support for 'examples' in Property struct.
* Add JSON schema validation to CLI
Introduces support for validating JSON schema files in the CLI by checking the input type and delegating to a new validate_from_json_schema function. Handles validation errors and logs results appropriately.
* Remove whitespace from title during deserialization
Added a custom deserializer for the SchemaObject title field to strip all whitespace characters during deserialization. Includes tests to verify whitespace removal for various input cases.
* Change Property examples type to Vec<Value>
Updated the Property struct so that the examples field is now a Vec<Value> instead of Vec<String>, allowing for more flexible example types in JSON schema properties.
* Bump version to 0.2.7 in project files
Updated version numbers to 0.2.7 in Cargo.toml, Cargo.lock, and pyproject.toml for the mdmodels and mdmodels_core projects.
0 commit comments