-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Add updateAnnotatedFile property #139
Add updateAnnotatedFile property #139
Conversation
We tested it on 5 APIs, and it worked perfectly. Thanks |
Also interested in this. When this can be merged? |
Great change! Please merge :) |
This PR is blocked because it requires a review from a user with write permissions. |
@aoisupersix Yes, sorry, my comment was meant for @gibahjoe :) |
I am soo sorry, been busy with studies all year. The downside of this PR is that you will need to manually update the file containing the annotation before build runner will pick it up again next time there are changes. But I understand why you need more control. |
Fixes #131
This PR adds
updateAnnotatedFile
property to@OpenApi()
annotation.When the timestamp is forcibly added or updated to the
@OpenApi()
annotated class, frequent differences occur in source control. Therefore, by adding theupdateAnnotatedFile
property, iffalse
is set, the addition or update of the timestamp will not be performed.Default is
true
to keep current behavior.The operation was checked by uncommenting in
openapi-generator/pubspec.yaml
.