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

Fix code generation #3

Merged
merged 7 commits into from
May 17, 2021
Merged

Fix code generation #3

merged 7 commits into from
May 17, 2021

Conversation

butonic
Copy link
Member

@butonic butonic commented May 12, 2021

OpenAPI v3.1 seems to alow $ref siblings, which allows us to generate actually usable code. So we dropped the anyOf "workaround".

To validate the 3.1 spec the openapi-generator in #9083 tracks the swagger-api/swagger-parser #1531 implementation for it.

Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
@butonic butonic force-pushed the fix-code-generation branch from 8266948 to 686d9c0 Compare May 12, 2021 10:47
Copy link
Member

@refs refs left a comment

Choose a reason for hiding this comment

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

👍 LGTM, doc generation will probably explode with openapi-generator because we're using a different generator, so I would leave documentation out of CI and instead rely on godocs

@micbar
Copy link
Contributor

micbar commented May 12, 2021

I copy&pasted the spec into swagger editor, seems fine so far.

@micbar
Copy link
Contributor

micbar commented May 12, 2021

CI validator is also green.

@refs
Copy link
Member

refs commented May 12, 2021

Continuing with this code generation library, we'd need to also update: https://github.com/owncloud/open-graph-api-go. Could you also rename the file to use .yaml as extension and close #2 👼

@micbar micbar merged commit dc6da53 into main May 17, 2021
@delete-merged-branch delete-merged-branch bot deleted the fix-code-generation branch May 17, 2021 09:47
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.

3 participants