diff --git a/src/oas.md b/src/oas.md index 655c82fb75..80505262bd 100644 --- a/src/oas.md +++ b/src/oas.md @@ -1267,7 +1267,6 @@ See [Working With Examples](#working-with-examples) for further guidance regardi | Field Name | Type | Description | | ---- | :----: | ---- | -| description | `string` | An optional description for the media type. [CommonMark syntax](https://spec.commonmark.org/) MAY be used for rich text representation. | | schema | [Schema Object](#schema-object) | A schema describing the complete content of the request, response, parameter, or header. | | itemSchema | [Schema Object](#schema-object) | A schema describing each item within a [sequential media type](#sequential-media-types). | | example | Any | Example of the media type; see [Working With Examples](#working-with-examples). | diff --git a/src/schemas/validation/schema.yaml b/src/schemas/validation/schema.yaml index e8896b505d..eb1136d0c6 100644 --- a/src/schemas/validation/schema.yaml +++ b/src/schemas/validation/schema.yaml @@ -582,8 +582,6 @@ $defs: $comment: https://spec.openapis.org/oas/v3.2#media-type-object type: object properties: - description: - type: string schema: $dynamicRef: '#meta' itemSchema: diff --git a/tests/schema/pass/media-type-examples.yaml b/tests/schema/pass/media-type-examples.yaml index c4b47190ba..8c09d91998 100644 --- a/tests/schema/pass/media-type-examples.yaml +++ b/tests/schema/pass/media-type-examples.yaml @@ -11,10 +11,6 @@ components: Pet: {} mediaTypes: StreamingPets: - description: | - Streaming sequence of JSON pet representations, - suitable for use with any of the streaming JSON - media types. itemSchema: $ref: '#/components/schemas/Pet' paths: