Changelog¶
v2.4.2 - 2024-11-06¶
Make sure to use float type instead of number
v2.4.1 - 2024-10-04¶
Updated documentation
v2.4.0 - 2024-08-29¶
Remove upper-bound constraint on std and graph modules
Add stable-addition helper for alternative diffing strategy
Fix typing of GeneratedResource protocol
v2.3.0 - 2024-07-16¶
Update logged_request helper to also log requests exceptions
v2.2.0 - 2024-07-05¶
Allow to define desired state operations on generated config nodes (configurable via inherit_config_element restbase config option)
Allow modules to configure generator behavior via configuration file
Allow to emit the reverse parent relation in generated model (configurable via emit_parent_relations restbase config option)
v2.1.0 - 2024-06-03¶
Fix comparison of list of primitives in safe_diff
More explicit generation failure when a schema was matched by multiple handlers.
Allow “oneOf” objects to define their own properties.
Separate utils.request_with_retries in 2 different functions for connection and http errors.
v2.0.2 - 2024-04-23¶
Always make resource’s index attributes required
Remove unnecessary logs when generating documentation
v2.0.1 - 2024-03-11¶
Logging level for items without identity now debug instead of warning
Update JSON validation
Passing a schema to
Validator.validate
is deprecated
v2.0.0 - 2024-02-20¶
Replace Json resolver
jsonschema.RefResolver
is deprecated and should not be used anymore. This implies that the following attributes and methods should not be used as well:build_reference_resolver
in any class implementing theGeneratedResource
interfaceref_resolver
in theSelectorContext
class
Replace deprecated resolver
Add support for caching transformed openapi schema
Add
build_common_entities_schemas
function to prevent duplication
v1.6.0 - 2024-01-17¶
Improve safe_diff when no identity is provided
v1.5.0 - 2023-11-27¶
utils.request_with_retries will retry on requests.ReadTimeout
Fix config generation for resources sharing their config tree with other resources
Improve timeout_request helper to allow overwriting the default timeout
Improve logged_request helper to handle more valid json responses
Ignore required flag for object array in generation
Improve safe_diff method
New helpers to compute the URL endpoint and to prefix every request made by a session
Add support for empty base_entities while still having an index assigned
Update log mechanism: allow to log all or particular parts of a requests.Response object
Fix compute_url_endpoint helper: query parameters were not added if the URL didn’t end with a ‘/’
v1.4.0 - 2023-08-11¶
Fix wiring of base type in primitive type ref schema
Skip resource from non-editable modules on module generation
Use inmanta core stable api for logging
Support generated types substitution with external types
Add generate-doc command to the generator
Make sure that generated type don’t conflict with native primitive types
v1.3.0 - 2023-04-19¶
Add support for resource entities without index
Add more tracability in module generation
Add support for recursive schemas
v1.2.1 - 2023-02-21¶
More resilient request logging
Fix timeout overwriting
v1.2.0 - 2023-02-17¶
Add safe_diff method, to allow more tolerant handling of un-diffable configs
v1.1.0 - 2023-02-16¶
Add default timeout to all requests made by the idempotent handler (#6)
Extract useful method from idempotent resource classes
v1.0.1 - 2023-02-15¶
Fix serialization of optional empty lists
v1.0.0 - 2023-02-15¶
Add transformers to help providing valid json schemas to the schema handlers
Refactor schema handler tree, provide clearer relation between inmanta model and corresponding json schema
v0.1.0 - 2023-02-14¶
Stop emitting index for non-resource entities
Add generate-config command to the generator
v0.0.1 - 2023-02-01¶
Update embedded diffing mechanism
Fix bad logging
Initial release