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

Improve proc macro model #655

Merged
merged 2 commits into from
Jun 1, 2022
Merged

Conversation

gabsi26
Copy link
Contributor

@gabsi26 gabsi26 commented Jun 1, 2022

Make argument annotation optional and use macro for all example models.

(Side note: the arguments can refer to each other in their min/max attributes, this is due to the order of the generated code.
I think this is a nice feature and should be kept.)

@gabsi26 gabsi26 requested a review from hannobraun as a code owner June 1, 2022 16:34
Copy link
Owner

@hannobraun hannobraun left a comment

Choose a reason for hiding this comment

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

Thank you, @gabsi26, looks great!

(Side note: the arguments can refer to each other in their min/max attributes, this is due to the order of the generated code.
I think this is a nice feature and should be kept.)

I fully agree!

gabsi26 added 2 commits June 1, 2022 18:53
If an argument has no annotations it now does not require an attribute

Signed-off-by: gabsi26 <gabriel.seebach@gmx.at>
Signed-off-by: gabsi26 <gabriel.seebach@gmx.at>
@hannobraun hannobraun force-pushed the improve_proc_macro branch from a671aa8 to 1ffc086 Compare June 1, 2022 16:53
@hannobraun hannobraun enabled auto-merge June 1, 2022 16:53
@hannobraun hannobraun merged commit 8719f79 into hannobraun:main Jun 1, 2022
@gabsi26 gabsi26 deleted the improve_proc_macro branch June 1, 2022 17:11
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