You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This means payload is a base64-encoded JSON document whose decoded content should match the nested schema.
DSL direction
contentEncoding and contentMediaType are usually compact enough as keyword arguments, but contentSchema is block-heavy and should follow the same current-node block conventions as #40.
The nested content_schema body should support normal schema DSL features, including metadata annotations once #40 is implemented:
Goal
Add support for Draft 2020-12 content annotation keywords:
contentEncodingcontentMediaTypecontentSchemaThese describe strings that contain encoded content.
Example JSON Schema:
{ "type": "string", "contentEncoding": "base64", "contentMediaType": "application/json", "contentSchema": { "type": "object" } }Proposed DSL
Simple content annotations can be keyword arguments:
With
contentSchema:This means
payloadis a base64-encoded JSON document whose decoded content should match the nested schema.DSL direction
contentEncodingandcontentMediaTypeare usually compact enough as keyword arguments, butcontentSchemais block-heavy and should follow the same current-node block conventions as #40.The nested
content_schemabody should support normal schema DSL features, including metadata annotations once #40 is implemented:Acceptance criteria
contentSchemasupports nested schema DSL.content_schemablocks are compatible with the current-node annotation/modifier design from Add metadata annotation keywords #40.