redux-toolkit
redux-toolkit copied to clipboard
Support for OpenAPI const keyword in typescript codegen
In OpenApi codegen using the x-const extension, a JSON-Schema field that looks like this:
{"properties": {"literal_value": {"const": "value", "default": "value"},
"title": "TestLiteralValue"}
produces a type in typescript of:
type TestLiteralValue = {
literal_value: any
}
but it should generate:
type TestLiteralValue = {
literal_value: 'value'
}