Skip to content

Swagger-core 2.0.3 released!

Compare
Choose a tag to compare
@frantuma frantuma released this 09 Aug 15:38
· 936 commits to master since this release
168e9b5
  • Add ref field to annotations with related support in Reader (#2839)

  • refs #2848 - fix required resolving for arrayschema schema (#2867)

  • refs #2778 - also consider NotEmpty and NotBlank to resolve required (#2876)

  • refs #2833 - fixes and resolves Links requestBody (#2877)
    IMPORTANT NOTE: this PR addresses #2833, by updating requestBody member datatype of swagger-models Link to be Object instead of previous RequestBody, as it correctly maps to OpenAPI definition https://github.com/OAI/OpenAPI-Specification/blob/3.0.1/versions/3.0.1.md#linkObject.
    This is a breaking change, but it makes sense as the previous datatype was basically wrong and meaningless. An alternative would be deprecating requestBody, and introducing a new requestBodyObject serialized as JSON requestBody via mixin and jackson annotations.

  • NPE on Json sub type with no name defined (#2862)

  • Add ref field to annotations with related support in Reader (#2839)

  • supports primitives in oneOf, anyOf, allOf schema annotations (#2902)