Releases: SMILEY4/schema-kenerator
Releases · SMILEY4/schema-kenerator
1.6.5
2.0.0-beta.2
- added option to enable/disable explicit "null"-types for properties (e.g.
.compileInlining(explicitNullTypes = true)
- added option to allow special float values (i.e. "NaN", "Infinity", "-Infinity") for Float and Double (e.g.
.generateSwaggerSchema { allowSpecialFloatingPointValues = true }
) - added option to generate schemas for maps with complex keys as array with the map key and map values as valid item types (e.g.
.generateSwaggerSchema { mapsWithStructuredKeysAsArrays = true }
) - option to handle nullable properties as required or non-required (e.g.
.generateSwaggerSchema { nullables = RequiredHandling.REQUIRED }
)
1.6.4
2.0.0-beta.1
- reworked base data models to better fit requirements and make them more flexible
- added support for kotlinx-serialization
@Contextual
annotation and@Serializable(with = ...)
- improved support for annotations on fields that modify the type/schema (e.g.
@Format
on properties) - renamed steps to better reflect their function and purpose:
connectSubTypes
toaddMissingSupertypeSubtypeRelations
mergeGetters
togettersToProperties
renameProperties
torenameMembers
processReflection
toanalyseTypeUsingReflection
processSerialization
toanalyseTypeUsingKotlinxSerialization
- re-structured reflection and kotlinx-serialization type analysis
- allow more powerful custom type analyzers
- open up more internals for custom processors while still being able to re-use common functions
- re-structures swagger and json schema generation
- allow more powerful custom schema generators
- removed deprecated "withAutoTitle" step
- shortened & simplified package structure
- make classes "internal" to reduce namespace pollution
- simplified and removed unnecessary dependencies, opened up transitive dependencies to library consumers
- fixed bug: type parameter nullability information was lost
- fixed bug:
@Type
-annotation not handled correctly
1.6.3
1.5.1
1.6.2
1.6.1
1.6.0
- added core annotations to specify schema 'type' and 'format':
@Schema
,@Type
. Can be added on classes and fields - exposes swagger library via gradle "api"
- swagger compilation step treats both openapi30
type
and openapi31types
as valid types - fixed bug: NPE during swagger compile inline step when using classes that have a nullable sealed class property