Skip to content

Latest commit

 

History

History

json-schema-single-enum-as-const

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

JSON Schema interpret single enum as constant

This example shows how to use the interpretSingleEnumAsConst option on the JSON Schema input processor to instead of interpreting {enum: ['single value']} as an enum, it will instead only be generated as a constant value.

This ONLY applies when it's a single value.

How to run this example

Run this example using:

npm i && npm run start

If you are on Windows, use the start:windows script instead:

npm i && npm run start:windows