Releases: ePages-de/restdocs-api-spec
Releases · ePages-de/restdocs-api-spec
Support attributes for ParameterDescriptor and HeaderDescriptor
Thanks to @iwaltgen for solving #95 with #200
- Attributes map from ParameterDescriptor and HeaderDescriptor are retained when using
ParameterDescriptorWithTypeandHeaderDescriptorWithType - This enables you to document a list of possible values (enumValues) for request parameters and headers
- OpenAPI 2 and OpenAPI 3 generators consider those enumValues when generating JSON Schema
Add support for @Min @Max constraints to NumberSchema
0.15.3 feat: apply `@Min` `@Max` constraints to NumberSchema (#199)
JSON Schema: Fix default value support
Thanks to @jackcat13 for providing #195 #194 !
Lint and build fix
0.15.0 failed build step with a linting error, CI wasn't run on #193
JSON Schema: Support @Pattern annotation
JSON Schema: fix schema for arrays and nested objects
Rename default to defaultValue
Thanks to @taehioum for pointing out #190 :
The new default value support for Header- and ParameterDescriptors introduced with 0.12.0 and 0.13.0 was using default as field and property names. This is fine in Kotlin, this is an error in Java. This release should fix Java compatibility.
JSON Schema: Default values for HeaderDescriptor
JSON Schema: Support default values and array items type
Thanks to @jgazeau and @TiboStev for contributing the following changes:
- Support
defaultvalues for ParameterDescriptors in JSON Schema generated by OpenAPI 2 and OpenAPI 3 generators, see #187 , #188 - Support specifying the array items type via attributes of a
FieldDescriptor(e.g. https://github.com/ePages-de/restdocs-api-spec/pull/186/files#diff-1692be3c3118e65fd0f7e339973764c4af3a504aae887fad431cda58b876cbfeR408 ). This renders asitems.typefor the respective JSON Schema. Fixes #147 and part of #146 (other part is untested), full change: #186