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(ISSUE-685): constants support #831

Merged

Conversation

sadfsdfdsa
Copy link
Contributor

@sadfsdfdsa sadfsdfdsa commented Dec 15, 2021

Issue: #685

Type: FEATURE
Tests: 100%
Affects: const/enums, all comments for const/enums

Now support const from yaml with type String/Number/Boolean:

image

Now support jsdoc comments for @constant/@enum {type}, with nullable option also:

image

@changeset-bot
Copy link

changeset-bot bot commented Dec 15, 2021

⚠️ No Changeset found

Latest commit: a047647

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@drwpow
Copy link
Contributor

drwpow commented Dec 27, 2021

Overall I’m in favor of this change 👍🏻 . This seems to improve on existing behavior without breaking it.

You’ll need to rebase off latest main, but hopefully the tests should pass without issue. Once this is rebased & tests are passing, happy to merge.

@sadfsdfdsa sadfsdfdsa force-pushed the pr/685-issue-consts-enums-improving branch from 09a46d8 to 3cf31bb Compare December 27, 2021 20:09
@sadfsdfdsa
Copy link
Contributor Author

sadfsdfdsa commented Dec 27, 2021

@drwpow there is small diff to merge))
it's all about @enum/@constant comments haha

Copy link
Contributor

@drwpow drwpow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great! Thanks for this awesome feature!

@drwpow drwpow merged commit bb52401 into openapi-ts:main Jan 11, 2022
@drwpow
Copy link
Contributor

drwpow commented Jan 11, 2022

Released in 5.1.0! 🎉

@sadfsdfdsa sadfsdfdsa deleted the pr/685-issue-consts-enums-improving branch January 11, 2022 18:51
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.

2 participants