Releases: victools/jsonschema-generator
Releases · victools/jsonschema-generator
3.5.0 – Expose Generation Context to Custom Definition Provider
Added
CustomDefinitionProviderV2
with access toSchemaGenerationContext
, e.g. to allow continuing normal schema generation for nested properties
Deprecated
CustomDefinitionProvider
receiving only theTypeContext
as parameter
Fixed
- Possible
IllegalAccess
when loading constant values should just be ignored
3.4.1 – Fix Container Type Handling
Fixed
- Collected attributes should also be applied to container types (Issue #15)
3.4.0 – Minor Extension for Convenience in Module Definitions
Added
- Introduce convenience function
MemberScope.getAnnotationConsideringFieldAndGetter(Class)
3.3.0 – Jackson Dependency Update to 2.10.0
Fixed
- Increase dependency version for jackson-databind (and jackson-core) to resolve security alerts.
- Avoid unnecessary quotes when representing constant string values (due to changed behaviour in jackson >=2.10.0)
This is a minor (instead of a patch) release due to the necessary change in behaviour for the Option.FLATTENED_ENUMS
.
3.2.0 – Additional Property Support
Added
- In
SchemaGenerator.generateSchema(Type)
also allow passing type parameters viaSchemaGenerator.generateSchema(Type, Type...)
. - Support for "required" property via
SchemaGeneratorConfigPart.withRequiredCheck()
(PR #5). - Support for "default" property via
SchemaGeneratorConfigPart.withDefaultResolver()
(PR #5). - Support for "pattern" property via
SchemaGeneratorConfigPart.withStringPatternResolver()
(Issue #9).
3.1.0 – Minor Enhancement and Bug Fixes
Changed
- Use
Class.getTypeName()
instead ofClass.getName()
inTypeContext.getFullTypeDescription()
.
Added
- In
TypeContext.resolve(Type)
also allow passing type parameters viaTypeContext.resolve(Type, Type...)
.
Fixed
NullPointerException
onMemberScope
representingvoid
methods.IndexOutOfBoundsException
when determining container item type of rawCollection
.
3.0.0 – Simplified Configuration API
Changed
- Simplify configuration API to be based on
FieldScope
/MethodScope
respectively. - Consolidate some utility functions into
FieldScope
/MethodScope
. - Consolidate logic for determining whether a type is a container into
TypeContext
. - Consolidate naming logic for schema "definitions" into
TypeContext
. - Add
TypeContext
argument toCustomDefinitionProvider
interface. - Remove
SchemaGeneratorConfig
argument fromInstanceAttributeOverride
interface.
Added
- Allow for sub-typing of
FieldScope
/MethodScope
andTypeContext
(in case offered configuration options are insufficient).
Removed
- Remove support for
Option.GETTER_ATTRIBUTES_FOR_FIELDS
andOption.FIELD_ATTRIBUTES_FOR_GETTERS
, rather let configurations/modules decide individually and avoid potential endless loop.
2.0.0 – Type Resolution API Change
Changed
- Removed own/custom ype resolution and replaced it with
org.fasterxml:classmate
dependency. - Adjusting configuration API to use
classmate
references for types/fields/methods.
Fixed
- Ignore complex constant values that may not be properly representable as JSON.
1.0.2 – Increase jackson-databind dependency version
- Bumping
jackson-databind
dependency version to 2.9.9 to benefit from fix for security alert.
1.0.1 – Dependency Fix Release
Fixed
- Specified "test" scope for dependency on
jsonassert
.