Skip to content

OAS 3.0 and 3.1 schemas require the Response Object description property but allow it to be emptyΒ #3538

@TristanSpeakEasy

Description

@TristanSpeakEasy

The JSON Schema - https://spec.openapis.org/oas/3.0/schema/2021-09-28#/definitions/Response/required for the OpenAPI specification marks description as a required property but then allows it to be an empty string.

This is causing some strange use cases in validators where people are just adding description: "" to get around the error returned.

I would propose either this is removed from being a required property or the property has a min length added (can even just be minLength: 1)

Thoughts?

Metadata

Metadata

Assignees

Labels

Schemachanges related to the schema(s)enhancementmetadatatags, info, license, contact, markdown usage, etc.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions