Releases: apiaryio/drafter
5.1.0
Enhancements
-
JSON Schemas generated for
fixed-type
arrays with a single sub-type will no longer be wrapped in ananyOf
schema. Thusarray[Object]
asfixed-type
will now result in the following schema:{ "type": "array", "items": { "type": "object" } }
Bug Fixes
- JSON Schemas generated for
fixed-type
arrays with no types will no longer produce an emptyanyOf
subschema.anyOf
must be a non-empty array in JSON Schema.
5.0.0
5.0.0-rc.1
Breaking
- Parsing and serialisation options in the C API of Drafter contain breaking changes. Direct access to the option structures are no longer possible, a new API layer has been added for the options. See
drafter_init_parse_options
anddrafter_serialize_options
respectively.
Enhancements
-
Improved support for URI Template. Drafter supports up to, and including level 4 of URI Template. This includes support for the URI Template explode (
*
) modifier, and reserved value operator (+
), and others. -
Added support for JSON Schema Draft 7 in schema generation from MSON. JSON Schemas are now generated using Draft 7 instead of Draft 4.
4.1.0
4.0.2
Bug Fixes
-
Avoid crashes on unresolved references, especially when MSON mixins reference primitive types (e.g.
Include (object)
).
#752 -
Prevent crashes under some circumstances while handling incorrectly indented blocks.
#755 -
Fixed cases where an enum with a matching sample, default or enumeration value would issue a duplication warning and the incorrect description may be selected.
#749]
4.0.1
Bug Fixes
-
Resolves an incompatibility with Microsoft Visual Studio 2019 which preventing Drafter from compiling. Resolves incompatibilities with older versions of Microsoft Visual Studio which caused run-time crashes.
-
Numerous improvements to the correctness of the content type parsing which is used to detect JSON and JSON Schema content types. This includes fixing the detection of media types as case-insensitive, previously
application/JSON
would not have been identified as a JSON type unlike the naming requirements for comparison in RFC 6838. -
Certain warnings and errors now contain more compact source maps in cases where the annotation spanned multiple indented lines. This can improve the parse result size and amount of memory used by the parser and surrounding tooling when encountering warnings or errors which contain incorrectly indented blocks.
4.0.0
4.0.0-pre.7
Enhancements
- The default build type is now release when using cmake.
Bug Fixes
- JSON value & JSON schema backends now support top-level Reference Elements. This prevents crashes on
Include
statements inenum
contexts.
#709
4.0.0-pre.6
Bug Fixes
4.0.0-pre.5
Bug Fixes
- Drafter now correctly expands types nested in EnumElement
#689