Skip to content
New issue

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

feat(cli): import - support enum string fields #210

Merged
merged 3 commits into from
May 27, 2020
Merged

Conversation

eladb
Copy link
Contributor

@eladb eladb commented May 26, 2020

When a JSON schema includes an enum string value list, generate a typescript enum to offer usability.

Resolves #196

BREAKING CHANGE: enum string values are now proper enums instead of just strings.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

When a JSON schema includes an `enum` string value list, generate a typescript `enum` to offer usability.

Resolves #196

BREAKING CHANGE: enum string values are now proper enums instead of just `string`s.
@eladb eladb requested a review from iliapolo May 26, 2020 19:14
@eladb eladb changed the title feat(cli): string enum fields in import feat(cli): import - support string enum fields May 27, 2020
@eladb eladb changed the title feat(cli): import - support string enum fields feat(cli): import - support enum string fields May 27, 2020
@mergify
Copy link
Contributor

mergify bot commented May 27, 2020

Your pull request will be updated and merged automatically (do not update manually).

@mergify mergify bot merged commit 8b8ad44 into master May 27, 2020
@mergify mergify bot deleted the benisrae/enums branch May 27, 2020 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

import: support enums in JSON schema
2 participants