-
-
Notifications
You must be signed in to change notification settings - Fork 612
Closed
Labels
PRs welcomePRs are welcome to solve this issue!PRs are welcome to solve this issue!enhancementNew feature or requestNew feature or requestplannedExpected in an upcoming versionExpected in an upcoming version
Description
Currently we have to use the following schema to define constants:
value:
type: string
enum: [some-constant]Which results in:
type value = 'some-constant'JSON schema supports defining with the const property, and it looks like OAI has adopted it as well? The definition would look like this:
value:
type: string
const: some-constantAnd would result in the same Typescript as above.
Richardmbs12 and robert-grunersadfsdfdsa
Metadata
Metadata
Assignees
Labels
PRs welcomePRs are welcome to solve this issue!PRs are welcome to solve this issue!enhancementNew feature or requestNew feature or requestplannedExpected in an upcoming versionExpected in an upcoming version