Skip to content

Commit 1e80c7c

Browse files
committed
Fix typo and remove wrong clarifications on all schema-related properties
1 parent 4dff1da commit 1e80c7c

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

versions/next/asyncapi.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1381,14 +1381,14 @@ components:
13811381

13821382
The Schema Object allows the definition of input and output data types.
13831383
These types can be objects, but also primitives and arrays.
1384-
This object is an superset of the [JSON Schema Specification Draft 07](http://json-schema.org/).
1384+
This object is a superset of the [JSON Schema Specification Draft 07](http://json-schema.org/).
13851385

13861386
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).
13871387
Unless stated otherwise, the property definitions follow the JSON Schema specification as referenced here.
13881388

13891389
##### Properties
13901390

1391-
The AsyncAPI Schema Object is a JSON Schema vocabulary which extends JSON Schema Core and Validation vocabularies. As such any keyword available for those vocabularies is by definition available in AsyncAPI, and will work the exact same way, including but not limited to:
1391+
The AsyncAPI Schema Object is a JSON Schema vocabulary which extends JSON Schema Core and Validation vocabularies. As such, any keyword available for those vocabularies is by definition available in AsyncAPI, and will work the exact same way, including but not limited to:
13921392

13931393
- title
13941394
- type
@@ -1412,20 +1412,20 @@ The AsyncAPI Schema Object is a JSON Schema vocabulary which extends JSON Schema
14121412
- if / then / else
14131413
- readOnly
14141414
- writeOnly
1415+
- properties
1416+
- patternProperties
1417+
- additionalProperties
1418+
- additionalItems
1419+
- items
1420+
- propertyNames
1421+
- contains
1422+
- allOf
1423+
- oneOf
1424+
- anyOf
1425+
- not
14151426

14161427
The following properties are taken from the JSON Schema definition but their definitions were adjusted to the AsyncAPI Specification.
14171428

1418-
- properties - Inline or referenced schema MUST be of a [Schema Object](#schemaObject) and not a standard JSON Schema.
1419-
- patternProperties - Inline or referenced schema MUST be of a [Schema Object](#schemaObject) and not a standard JSON Schema.
1420-
- additionalProperties - Inline or referenced schema MUST be of a [Schema Object](#schemaObject) and not a standard JSON Schema.
1421-
- additionalItems - Inline or referenced schema MUST be of a [Schema Object](#schemaObject) and not a standard JSON Schema.
1422-
- items - Inline or referenced schema MUST be of a [Schema Object](#schemaObject) and not a standard JSON Schema.
1423-
- propertyNames - Inline or referenced schema MUST be of a [Schema Object](#schemaObject) and not a standard JSON Schema.
1424-
- contains - Inline or referenced schema MUST be of a [Schema Object](#schemaObject) and not a standard JSON Schema.
1425-
- allOf - Inline or referenced schema MUST be of a [Schema Object](#schemaObject) and not a standard JSON Schema.
1426-
- oneOf - Inline or referenced schema MUST be of a [Schema Object](#schemaObject) and not a standard JSON Schema.
1427-
- anyOf - Inline or referenced schema MUST be of a [Schema Object](#schemaObject) and not a standard JSON Schema.
1428-
- not - Inline or referenced schema MUST be of a [Schema Object](#schemaObject) and not a standard JSON Schema.
14291429
- description - [CommonMark syntax](http://spec.commonmark.org/) can be used for rich text representation.
14301430
- format - See [Data Type Formats](#dataTypeFormat) for further details. While relying on JSON Schema's defined formats, the AsyncAPI Specification offers a few additional predefined formats.
14311431
- default - The default value represents what would be assumed by the consumer of the input as the value of the schema if one is not provided. Unlike JSON Schema, the value MUST conform to the defined type for the Schema Object defined at the same level. For example, of `type` is `string`, then `default` can be `"foo"` but cannot be `1`.

0 commit comments

Comments
 (0)