Releases: apiaryio/api-elements.js
[email protected]
Bug Fixes
- Prevent
valueOf
from throwing an error while handling an object element which contains a member element which does not include a value.
@apielements/[email protected]
Bug Fixes
- Support required keys in a Schema Object which are not found in the properties list.
@apielements/[email protected]
Bug Fixes
-
The parser will now produce a data structure for Schema Object's which do not contain a
type
. -
Added the
fixedType
attribute to array data structures which describe arrays with fixed types in the items. For example, the following schema which describes an array where the values MUST be of type string:type: array items: type: string
Previously we generated a data structure for an array which didn't fix the values of the array to be a string type. Instead provided an example that the value of the array MAY be a string.
-
Support required keys in a Schema Object which are not found in the properties list.
@apielements/[email protected]
Bug Fixes
-
Prevent the parser from throwing an error when handling a Server Object with
variables when the URL does not contain any variables. For example:openapi: 3.0.3 servers: - url: https://example.com variables: version: default: '1.0' paths: {}
@apielements/[email protected]
The package has been renamed to @apielements/apib-parser
.
[email protected]
Enhancements
-
Support for
servers
inPath Item Object
andOperation Object
-
'Parameter Object' 'explode' style is partially supported, it can be used with query parameters.
[email protected]
Internal changes to the dependency tree to simplify package maintenance.
[email protected]
This release contains an updated api-elements models. See api-elements 0.2.4 for further details.
[email protected]
This update incorporates changes from Fury Adapters:
- fury-adapter-oas3-parser 0.11.0
- fury-adapter-swagger 0.29.0
[email protected]
-
Compatibility with Fury 3.0.0 Beta 14.
-
The parser can now be configured to disable generation of example message bodies and message body schemas by providing an adapter option
generateMessageBody
orgenerateMessageBodySchema
asfalse
during parse.