-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Correct generation of additionalProperties Map for numerous Java libraries (issue #20139) #21229
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
base: master
Are you sure you want to change the base?
Conversation
|
I'll ignore that failure on Circle CI node1 from now on |
|
@martin-mfg , thank you for the approval. I checked and CI failed the last 2 times because of a HTTP 503 while the machine was fetching packages. Should I bother making another trigger commit? |
@DavidGrath No, I think that's not necessary. I reran the pipelines here and everything is green. Just give the project maintainer a bit more time to merge your PR. :) However, you could change the PR title to something more meaningful. |
|
@wing328 @martin-mfg , sorry for the ping, but I think this might've been overlooked |
|
@wing328 @martin-mfg , please help review again |
| // an object or anyType composed schema that has additionalProperties set | ||
| addAdditionPropertiesToCodeGenModel(m, schema); | ||
| } else if(!ModelUtils.isDisallowAdditionalPropertiesIfNotPresent()) { | ||
| addAdditionPropertiesToCodeGenModel(m, schema); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @DavidGrath thanks again for the PR.
My first question is it looks to me the if block is checking the schema type but your additional is not checking scheme type but rather an option (disallowAdditionalPropertiesIfNotPresent) ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wing328 , yes, that is correct, my reasoning being that the property wasn't already considered in the if block already, so addAdditionPropertiesToCodeGenModel wouldn't have been called at all if it was false
PR checklist
Commit all changed files.
This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
These must match the expectations made by your contribution.
You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example
./bin/generate-samples.sh bin/configs/java*.IMPORTANT: Do NOT purge/delete any folders/files (e.g. tests) when regenerating the samples as manually written tests may be removed.
master(upcoming7.x.0minor release - breaking changes with fallbacks),8.0.x(breaking changes without fallbacks)@martin-mfg , please help review for Java