Skip to content

Releases: apiaryio/drafter

5.1.0

28 Jul 17:27
Compare
Choose a tag to compare

Enhancements

  • JSON Schemas generated for fixed-type arrays with a single sub-type will no longer be wrapped in an anyOf schema. Thus array[Object] as fixed-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 empty anyOf subschema. anyOf must be a non-empty array in JSON Schema.

5.0.0

21 Apr 10:40
Compare
Choose a tag to compare

Enhancements

  • Drafter contains two new options for disabling messageBody and messageBodySchema generation from MSON. See the APIs skip_gen_bodies and skip_gen_body_schemas respectively.

5.0.0-rc.1

17 Mar 11:15
Compare
Choose a tag to compare

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 and drafter_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.

    #553 #456 #630

  • 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

28 Nov 15:07
Compare
Choose a tag to compare

Enhancements

  • Added support for dynamically linking against Drafter. The installation of Drafter will now install a dynamic library (dll/so/dylib) on the system.

4.0.2

29 Oct 14:42
Compare
Choose a tag to compare

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

17 Sep 11:59
Compare
Choose a tag to compare

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

30 Jul 12:00
Compare
Choose a tag to compare

Bug Fixes

  • Avoid duplication in enumerations for same elements with different description
    #718

4.0.0-pre.7

31 May 17:04
Compare
Choose a tag to compare
4.0.0-pre.7 Pre-release
Pre-release

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 in enum contexts.
    #709

4.0.0-pre.6

20 May 19:27
Compare
Choose a tag to compare
4.0.0-pre.6 Pre-release
Pre-release

Bug Fixes

  • The fixed type attribute now inherits to empty objects. This regression was introduced in 4.0.0-pre.1.
    #686

  • Prevents a segmentation fault while parsing a document which contains an "empty" One Of MSON entry.
    #699

  • Prevent an infinite loop while parsing a document with a circular MSON reference.
    #702

4.0.0-pre.5

07 May 17:19
d2fd66b
Compare
Choose a tag to compare
4.0.0-pre.5 Pre-release
Pre-release

Bug Fixes

  • Drafter now correctly expands types nested in EnumElement
    #689