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

[feature][dart] Add support for uniqueItems/sets #8375

Merged
merged 8 commits into from
Feb 2, 2021

Conversation

kuhnroyal
Copy link
Contributor

@kuhnroyal kuhnroyal commented Jan 7, 2021

  • copy uniqueItems usage from 2.0 fake spec to 3.0
  • add support for sets in parameters, responses and properties

PR checklist

  • Read the contribution guidelines.
  • Pull Request title clearly describes the work in the pull request and Pull Request description provides details about how to validate the work. Missing information here may result in delayed response from the community.
  • If contributing template-only or documentation-only changes which will change sample output, build the project beforehand.
  • Run the shell script ./bin/generate-samples.shto update all Petstore samples related to your fix. 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*. For Windows users, please run the script in Git BASH.
  • File the PR against the correct branch: master, 5.1.x, 6.0.x
  • Copy the technical committee to review the pull request if your PR is targeting a particular programming language.

@auto-labeler
Copy link

auto-labeler bot commented Jan 7, 2021

👍 Thanks for opening this issue!
🏷 I have applied any labels matching special text in your issue.

The team will review the labels and make any necessary changes.

@kuhnroyal
Copy link
Contributor Author

@agilob @josh-burton Please review if you find time

@@ -204,6 +204,44 @@ public void listPropertyTest() {
Assert.assertTrue(property2.isContainer);
}

@Test(description = "convert a model with set property")
Copy link
Contributor

Choose a reason for hiding this comment

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

finally some tests :D

@agilob
Copy link
Contributor

agilob commented Jan 7, 2021

LGTM, not sure whether other people maintaining jersey and typescript will be happy with changes in spec, but it looks like it works for their generator too.

I probably should start using dart-dio, you're doing great work there mate.

@kuhnroyal
Copy link
Contributor Author

This is probably considered a breaking change without fallback? So it goes to 6.0.0? 😢

@wing328
Copy link
Member

wing328 commented Jan 25, 2021

This is probably considered a breaking change without fallback? So it goes to 6.0.0? 😢

We did not consider adding set support is a breaking change in other generators (e.g. Ruby, Java, etc) before so I'm ok this change gets into the current master.

@kuhnroyal kuhnroyal marked this pull request as ready for review January 25, 2021 13:35
@kuhnroyal
Copy link
Contributor Author

@wing328 Sounds good to me, I have removed the draft label. Build failures seem unrelated as far as I can tell.

@wing328
Copy link
Member

wing328 commented Jan 25, 2021

Since there are changes to the test spec, can you please run ./bin/generate-samples.sh to update the samples for other generators?

@kuhnroyal
Copy link
Contributor Author

I did, thats what caused the changes in TS/Kotlin. I can rebase and do that again, maybe something has changed in the meantime.

@wing328
Copy link
Member

wing328 commented Jan 25, 2021

Can you merge the latest master into your branch and update the samples again?

I just did that and saw some changes to the Ruby and C# samples.

* copy `uniqueItems` usage from 2.0 fake spec to `3.0`
* add support for sets in parameters, responses and properties
@wing328 wing328 added this to the 5.0.1 milestone Jan 25, 2021
@kuhnroyal
Copy link
Contributor Author

Rebased and regenerated.

@wing328 wing328 merged commit 769b0e0 into OpenAPITools:master Feb 2, 2021
@kuhnroyal kuhnroyal deleted the dart/set-support branch February 2, 2021 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants