kogosoftwarellc / open-api

A Monorepo of various packages to power OpenAPI in node
MIT License
892 stars 235 forks source link

openapi-types: Add support for "const" keyword to base schema type. #832

Closed jayalfredprufrock closed 2 years ago

jayalfredprufrock commented 2 years ago

The "const" keyword was added in OAS 3.1, largely as syntactic sugar for a single value enum. It's been a part of the JSON schema spec since draft-06 and seems to be more common out in the wild now.