From 9c2829f9e840edc9207243446e7347e2a02c350f Mon Sep 17 00:00:00 2001 From: Lazzaretti Date: Thu, 8 Feb 2024 10:54:51 +0100 Subject: [PATCH 1/2] docs: explain Multi Format Schema Object option in Schema Object https://github.com/asyncapi/spec/issues/1015 --- spec/asyncapi.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/asyncapi.md b/spec/asyncapi.md index 6f8fb5c3..66c061d4 100644 --- a/spec/asyncapi.md +++ b/spec/asyncapi.md @@ -1874,7 +1874,7 @@ The Schema Object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. This object is a superset of the [JSON Schema Specification Draft 07](https://json-schema.org/). The empty schema (which allows any instance to validate) MAY be represented by the `boolean` value `true` and a schema which allows no instance to validate MAY be represented by the `boolean` value `false`. Further information about the properties can be found in [JSON Schema Core](https://tools.ietf.org/html/draft-handrews-json-schema-01) and [JSON Schema Validation](https://tools.ietf.org/html/draft-handrews-json-schema-validation-01). -Unless stated otherwise, the property definitions follow the JSON Schema specification as referenced here. +Unless stated otherwise, the property definitions follow the JSON Schema specification as referenced here. Other formats, that are not representable with JSON Schema (e.g., Avro or protobuf) can be included as [Multi Format Schema Object](#multiFormatSchemaObject). ##### Properties From 1c7d8444762c6163539c469652f32b2a5892ad08 Mon Sep 17 00:00:00 2001 From: Fabrizio Lazzaretti Date: Thu, 8 Feb 2024 13:07:06 +0100 Subject: [PATCH 2/2] Update sentence Co-authored-by: Sergio Moya <1083296+smoya@users.noreply.github.com> --- spec/asyncapi.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/asyncapi.md b/spec/asyncapi.md index 66c061d4..bd7bada5 100644 --- a/spec/asyncapi.md +++ b/spec/asyncapi.md @@ -1874,7 +1874,7 @@ The Schema Object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. This object is a superset of the [JSON Schema Specification Draft 07](https://json-schema.org/). The empty schema (which allows any instance to validate) MAY be represented by the `boolean` value `true` and a schema which allows no instance to validate MAY be represented by the `boolean` value `false`. Further information about the properties can be found in [JSON Schema Core](https://tools.ietf.org/html/draft-handrews-json-schema-01) and [JSON Schema Validation](https://tools.ietf.org/html/draft-handrews-json-schema-validation-01). -Unless stated otherwise, the property definitions follow the JSON Schema specification as referenced here. Other formats, that are not representable with JSON Schema (e.g., Avro or protobuf) can be included as [Multi Format Schema Object](#multiFormatSchemaObject). +Unless stated otherwise, the property definitions follow the JSON Schema specification as referenced here. For other formats (e.g., Avro, RAML, etc) see [Multi Format Schema Object](#multiFormatSchemaObject). ##### Properties