During the translation of an API Blueprint Payload Section to corresponding Asset Elements,
content types are fully interpreted (parsed, evaluated, serialized)
uses PEGTL grammar
implements media type serialization (unit tests needed)
translation of user-supplied Body Section & Schema Section into Asset Elements is performed in isolation from generating and attaching derived Asset Elements.
prerequisite to implement drafter options generate-json-values & generate-json-schemas
Impact on tests
Behaviour now corresponds to generate-json-values=true, generate-json-schemas=true
test/fixtures/api/action-request-attributes.json
adds generated JSON Schema
test/fixtures/api/issue-702.json
adds generated JSON
adds generated JSON Schema
test/fixtures/api/schema-body.json
fixes class of a JSON schema asset to equal messageBodySchema where previously it was messageBody
formats media type of that schema (removes white space not required)
test/fixtures/api/schema-custom-json.json
adds generated JSON Schema
test/fixtures/api/schema-custom.json
fixes contentType of a custom schema asset to equal application/schema+xml where previously it was application/xml
test/fixtures/extend/many.json
fixes propagation of media type parameters (charset=utf-8) where they were previously omitted
During the translation of an API Blueprint Payload Section to corresponding Asset Elements,
generate-json-values
&generate-json-schemas
Impact on tests
generate-json-values=true
,generate-json-schemas=true
test/fixtures/api/action-request-attributes.json
test/fixtures/api/issue-702.json
test/fixtures/api/schema-body.json
class
of a JSON schema asset to equalmessageBodySchema
where previously it wasmessageBody
test/fixtures/api/schema-custom-json.json
test/fixtures/api/schema-custom.json
contentType
of a custom schema asset to equalapplication/schema+xml
where previously it wasapplication/xml
test/fixtures/extend/many.json
charset=utf-8
) where they were previously omittedtest/fixtures/render/action-request-attributes.json
test/fixtures/render/content-type.json
charset=utf-8
) where they were previously omitted