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(parser): add deprecation information for field arguments #135

Merged
merged 2 commits into from
Mar 11, 2023

Conversation

jeromedalbert
Copy link
Contributor

Just like fields have deprecation information, add deprecation information for field arguments as well.

This is useful information that has been missing so far from the parser. It can be used by custom templates that display deprecated arguments differently, such as showing a warning or hiding the deprecated argument altogether.

The implementation follows the same logic as field a few lines above.

Just like fields have deprecation information, add deprecation information
for field arguments as well. This is useful information that has been
missing so far from the parser. It can be used by custom templates that
display deprecated arguments differently, such as showing a warning or
hiding the deprecated argument altogether.

The implementation follows the same logic as `field` a few lines above.
Copy link
Owner

@brettchalupa brettchalupa left a comment

Choose a reason for hiding this comment

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

Thanks for this, I really appreciate it! Code looks good to me, but would you be up for adding a unit test for it? Let me know if I can be of any help there if you need it.

@brettchalupa
Copy link
Owner

Also, I see the Ruby 2.6.10 tests are failing, but that looks to be unrelated to your changes. I'll work on fixing that in main.

@brettchalupa brettchalupa merged commit 418357d into brettchalupa:main Mar 11, 2023
@brettchalupa
Copy link
Owner

@jeromedalbert thanks again for the contribution! I'll cut a 4.1 release early next week with the change.

@jeromedalbert
Copy link
Contributor Author

Cool, thanks!

@jeromedalbert jeromedalbert deleted the add-args-deprecation branch March 21, 2023 17:50
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