Skip to content

Releases: SMILEY4/schema-kenerator

1.6.5

14 Feb 20:56
Compare
Choose a tag to compare
  • fix bug: using @Type and @Format annotation results in dropped type
  • fix bug: renaming swagger properties did not affect actual schema (#44)

2.0.0-beta.2

02 Feb 17:49
Compare
Choose a tag to compare
2.0.0-beta.2 Pre-release
Pre-release
  • 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

31 Jan 12:46
Compare
Choose a tag to compare
  • fixed bug: when using reflection to analyze generic types, too many interfaces might be detected as subtypes (#43)
  • fixed bug: when generating schema for a type overwriting a property with a more specific type, the wrong type was used in the resulting schema (#43)

2.0.0-beta.1

29 Jan 00:05
Compare
Choose a tag to compare
2.0.0-beta.1 Pre-release
Pre-release
  • 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 to addMissingSupertypeSubtypeRelations
    • mergeGetters to gettersToProperties
    • renameProperties to renameMembers
    • processReflection to analyseTypeUsingReflection
    • processSerialization to analyseTypeUsingKotlinxSerialization
  • 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

10 Jan 20:30
Compare
Choose a tag to compare
  • fixed: unchanged properties of swagger @Schema and @ArraySchema annotations were not ignored during schema generation

1.5.1

10 Jan 20:46
Compare
Choose a tag to compare
  • fixed: unchanged properties of swagger @Schema and @ArraySchema annotations were not ignored during schema generation

1.6.2

11 Dec 22:35
Compare
Choose a tag to compare
  • fixed/add support for top-level generics with kotlinx

1.6.1

09 Dec 22:42
Compare
Choose a tag to compare
  • upgrade schema io.swagger.parser.v3:swagger-parser from 2.1.20 to 2.1.24

1.6.0

17 Nov 15:02
Compare
Choose a tag to compare
  • 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 openapi31 types as valid types
  • fixed bug: NPE during swagger compile inline step when using classes that have a nullable sealed class property

1.5.0

19 Oct 18:08
Compare
Choose a tag to compare
  • added support for discriminator mapping in swagger schemas
  • added support for example property on swagger @Schema-annotation (#32)
  • added new core annotation @Format (#36)
  • upgrade kotlin to 2.0.21
  • fixed: naming conflict in core @Default annotation (#35)