We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enum values should be parsed as literals as the spec states.
The following JSONSchema:
{ "title": "Enum with JSON literal", "enum": [ { "type": "string" } ] }
should be transpiled into the following typescript model:
export type EnumWithJSONLiteral = {type: "string"};
is transpiled into the following typescript model:
export type EnumWithJSONLiteral = string;
Consider the specs as references:
The text was updated successfully, but these errors were encountered:
@bcherny I just created #509 to fix this issue :)
Sorry, something went wrong.
Published json-schema-to-typescript-12.0.0
notaphplover
No branches or pull requests
Description
Enum values should be parsed as literals as the spec states.
Expected behavior:
The following JSONSchema:
should be transpiled into the following typescript model:
Current behavior:
The following JSONSchema:
is transpiled into the following typescript model:
Context
Consider the specs as references:
The text was updated successfully, but these errors were encountered: