Releases: apiaryio/drafter
4.0.0-pre.4
Bug Fixes
-
Drafter no longer attempts to interpret non-primitive MSON type hints as fallbacks for nested values.
#682+ (array[object]) + MSON string now interpreted as String Element instead of Object Element
-
Release builds of Drafter will no longer include assertions, this prevents the potential for development intended assertions to cause Drafter to abort.
4.0.0-pre.3
Enhancements
-
Generated JSON Schema makes use of the
enum
validation instead of the more syntax heavyanyOf
for each enumerations EnumElement entry typing a single value. -
Transitioned from C++14 back to C++11 to support older compilers.
4.0.0-pre.2
Enhancements
- Add column/line info to annotations source maps.
Bug Fixes
- Parameters which are of
enum
type will now have theirdefault
values correctly serialized in the output usingenum
type.
4.0.0-pre.1
Breaking
-
This release contains numerous changes to enumerations which affect how
enumerations are serialised in API Elements.- See API Elements 1.0 for further specification
on the format of the enumerations. - Samples are now collected as collection of individual elements.
- The parser will now emit a warning when you define multiple default
values for an enumeration.
- See API Elements 1.0 for further specification
-
Descriptions for MSON structures are no longer found in generated JSON Schemas.
Enhancements
- Significant performance improvements have been made to this release and
parse times for API Blueprints are halved.
Bug Fixes
-
Large numbers will no longer be clipped and numbers will be rendered how
they was described. For example10.00
will be rendered as10.00
and not10
.
#443 -
JSON Schema will no longer contain redundant anyOf entries when using
fixed-type arrays.
#566 -
Restored handling API Blueprints where referencing an unknown type inside an
array[]
would cause an assertion failure instead of a parsing error.
#556 -
Fix parsing MSON object structures where a property is declared without a
key. This was causing an assertion failure instead of a parse error.
#547 -
JSON Schema generation will no longer include duplicate required properties
when a property in MSON structure is duplicated.
#493
4.0.0-pre.0
Breaking
-
The following compiler versions are supported:
- Microsoft Visual C++ 2015 or higher
- GCC 5.3 or higher
- Clang 4.0 or higher
-
Deprecated API Blueprint AST support has been removed.
-
Drafter will now produce API Elements 1.0 using the Refract 1.0 JSON Serialisation format.
Refract JSON Serialisation
API Elements 1.0
Enhancements
- Instead of returning int, functions that may error return
drafter_error
type. This adds additional type-safety when handling errors.
Bug Fixes
- Fix JSON Schema "required" for multiple defined members
#493