Skip to content

Releases: SMILEY4/schema-kenerator

1.2.3

20 Sep 15:47
Compare
Choose a tag to compare
  • fix issues with nullability of fields

1.3.0

29 Sep 16:57
Compare
Choose a tag to compare

please ignore this version - i messed up during release here 😆

1.2.2

15 Sep 20:48
Compare
Choose a tag to compare

fixed bug: wrong format for openapi TitleType and RefType

1.2.1

15 Sep 18:58
Compare
Choose a tag to compare
  • fixed bug: wrong format for TitleType.OPENAPI_SIMPLE

1.2.0

11 Sep 19:35
Compare
Choose a tag to compare
  • added TitleType.OPENAPI_SIMPLE, TitleType.OPENAPI_FULL, RefType.OPENAPI_SIMPLE, RefType.OPENAPI_FULL as options for swagger that generate results confirming to the openapi-spec
  • RefType.OPENAPI_FULL replaces RefType.FULL as the default for swagger schemas
  • renames step withAutoTitle(...) to withTitle(...)
  • step withTitle(...) can take a builder function to provide a custom title
  • step compileReferencing(...) and compileReferencingRoot(...) can take a builder function to provide a custom path
  • fixed bug: redirecting to nullable types did not work correctly

1.1.1

01 Sep 19:32
Compare
Choose a tag to compare
  • fixed bug: swagger example property not set correctly. Used examples instead of example.
  • fixed bug: exception when using Schema-annotation with blank minimum and maximum
  • fixed bug: Default-annotation not handled for properties (swagger and json-schema)

1.1.0

07 Aug 14:31
Compare
Choose a tag to compare
  • added steps customizeTypes and customizeProperties for easier manual customization of json-schema and swagger-schema

  • added support for optional properties

    • detect optional parameters (non nullable, but with a default value provided)
    • handle in schema generation step as required or non required (configurable)
  • added support for inline value classes

    • detect value classes
    • inline "wrapped" type in schema generation
  • added config option knownNotParameterized for type processing with kotlinx-serialization to manually prevent single type appearing multiple times in some setups

  • added support for annotations with kotlinx-serialization

  • fixed: type redirects not working with kotlinx-serialization

  • fixed: exception when qualified name is missing, e.g. for local classes

1.0.1

21 Jun 18:55
Compare
Choose a tag to compare
  • fixed infinite loops in schema compile step
  • fixed infinite loops in kotlinx-serialization step
  • fixed minor schema compilation issues

1.0.0

08 Jun 13:10
Compare
Choose a tag to compare

🥳

0.4.0

30 May 16:50
Compare
Choose a tag to compare
  • reworked naming of steps to be more consistent and clearer
  • detect whether a collection allows only unique elements (i.e. is a set) and include uniqueItems in json and swagger schema generation
  • implemented type redirects to allow processing a custom type instead of the real one
  • fix: exception when filtering members of some types
  • fix: exception when processing type parameters of some types