Skip to content

bugfix/multiple indexers#1560

Merged
baywet merged 23 commits intomainfrom
bugfix/multiple-indexers
May 17, 2022
Merged

bugfix/multiple indexers#1560
baywet merged 23 commits intomainfrom
bugfix/multiple-indexers

Conversation

@baywet
Copy link
Member

@baywet baywet commented May 11, 2022

fixes #1535

No changes to our samples.

@baywet baywet added the generator Issues or improvements relater to generation capabilities. label May 11, 2022
@baywet baywet self-assigned this May 11, 2022
baywet added 22 commits May 16, 2022 10:20
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
…ype names in CSHarp

Signed-off-by: Vincent Biret <vibiret@microsoft.com>
- fixes a bug where properties could have invalid names (only numbers)
- fixes a bug where enum symbols could be invalid

Signed-off-by: Vincent Biret <vibiret@microsoft.com>
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
…ation

- fixes a bug where inline request body classes would override each other on multiple operations

Signed-off-by: Vincent Biret <vibiret@microsoft.com>
- fixes a bug where CSharp executor method could not have scalar request bodies

Signed-off-by: Vincent Biret <vibiret@microsoft.com>
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
- fixes a bug where model classes would fail to generate if the type wasn't set to object
- fixes a bug where flattening compositions for nullable would ignore some type options

Signed-off-by: Vincent Biret <vibiret@microsoft.com>
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
- fixes an issue with inline classes naming

Signed-off-by: Vincent Biret <vibiret@microsoft.com>
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
- fixes a bug wher some code symbols could be only numbers

Signed-off-by: Vincent Biret <vibiret@microsoft.com>
…ce id

Signed-off-by: Vincent Biret <vibiret@microsoft.com>
- fixes id cleanup regex

Signed-off-by: Vincent Biret <vibiret@microsoft.com>
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
@baywet baywet force-pushed the bugfix/multiple-indexers branch from caf6b24 to 30c3f8b Compare May 16, 2022 18:32
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 3 Code Smells

82.5% 82.5% Coverage
0.0% 0.0% Duplication

Copy link
Contributor

@zengin zengin left a comment

Choose a reason for hiding this comment

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

Are our samples extendable to cover the edge cases that @darrelmiller outlined in the linked issue for GitHub API?

@baywet
Copy link
Member Author

baywet commented May 17, 2022

@zengin do you mean we should add samples for the GitHub API? We could. My bigger challenge at this point is how to scale the samples. Right now the addition, update and validation of samples is manual. I think a good first step would be to have github actions workflows to automate the validation. And then we could add a workflow that updates the samples on every new release or something like that.

@zengin
Copy link
Contributor

zengin commented May 17, 2022

@baywet, not the entire GitHub API, but to cover some subset which has the multiple indexers in the URL, something like the test cases we have in the Typewriter repo. If it is not scalable at the moment, I think the unit tests are fine for now.

@baywet baywet merged commit 7b3311e into main May 17, 2022
@baywet baywet deleted the bugfix/multiple-indexers branch May 17, 2022 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

generator Issues or improvements relater to generation capabilities.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GitHub OpenAPI file fails to generate due to the use of two different parameters as collection indexes.

2 participants