Skip to content

2020.4 (1.4.0)

Compare
Choose a tag to compare
@hauner hauner released this 23 Dec 09:39
· 2213 commits to main since this release

copied from openapi-processor-core

  • openapi-processor/openapi-processor-core#34, report a formatting error including the failing source code

  • openapi-processor/openapi-processor-core#35, using tags like test_api & test-api at the same time would override one interface. Both tags result in the same java interface name TestApi ( '_' is (usually) not used in interface names and - is not a valid java identifier char).

    The processor will now merge endpoints with tags like this into the same interface

  • #39, added json schema for the mapping.yaml. Some IDEs (e.g. Intellij IDEA) use it to provide editing support. Thanks to @schlagi123 for providing the initial version

  • openapi-processor/openapi-processor-core#41, the _ character was lost when converting enum value names to valid java identifiers. For example an enum value FOO_FOO was converted to FOOFOO. The underscore is now preserved for enum values.

  • openapi-processor/openapi-processor-core#43, first step of allOf support. allOf of multiple object schemas will create a model class with all properties of the individual items.

  • openapi-processor/openapi-processor-core#44, fixed generation of @NotNull bean validation annotation. It is now based on the required property instead of the nullable property

  • #48, a type-less schema would crash the processor. It has now minimal handling (more or less ignoring it) so it does not crash anymore.

      allOf:
        - readOnly: true                       # type-less schema
        - $ref: '#/components/schemas/Foo'     # does not matter if it is $ref
  • updated swagger parser to 2.0.23 (was 2.0.21)