IBM / openapi-validator

Configurable and extensible validator/linter for OpenAPI documents
Apache License 2.0
481 stars 88 forks source link

fix(ibm-schema-naming-convention): allow canonical schema for create/replace #636

Closed dpopp07 closed 11 months ago

dpopp07 commented 11 months ago

The Handbook states:

"There is an important exception to this guidance if the nature of an API is to provide clients with full control over entire resources, with no system-defined or immutable aspects. For such APIs, the canonical schema itself SHOULD be used in requests to create or replace a resource."

This commit allows for the name of the canonical schema to be used for resource-oriented POSTs and PUTs.