-
Notifications
You must be signed in to change notification settings - Fork 126
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
Problems with GitHub's OpenAPI 3.1 spec #712
Comments
commenting out all
|
Can you confirm the exact commit of the GitHub OpenAPI doc you're using? I just pulled the latest and it generates successfully for me (with warnings, but without errors). |
@czechboy0 didn't use any special documents, just the one linked which is the latest committed to the main branch. This to be precise. I simply substituted this file with the one in Penny's Lambdas/GitHubAPI folder, and reran the command plugin. |
I also noticed the problems only happen when using the 3.1.0 OpenAPI document, not the 3.0.3 one. |
Also these all happened before the latest PR ... so if you want to try something in Penny, you should checkout https://github.com/vapor/penny-bot/tree/b3fea03e431d81edf0edc4b04ca78bb83b7450e6. I went through updating the openapi file and i used the filter feature to only create stuff that we need, so it might not try to create those stuff that result in errors. |
I'm saying I can't reproduce this issue on a new empty sample project. And are you saying the error isn't occurring once you've filtered only to the parts of the document you use? That'd be a good hint at which part of the pipeline is failing |
@czechboy0 surely yes ... the generator doesn't totally fail, it just stops since it sees some things that it thinks are errors. Though now that we're talking I also want to mention that even after the comment-outs and the generator working, it was super confusing to me that with the 3.1.0 OpenAPI document there were a lot more of those e.g. |
Please file individual issues if you find anything that's well-formed under the OpenAPI specification (we do skip malformed content in some places), the generator claims to support it, but isn't generating it. That'd be considered a bug. Let me take a look at the commit hash you shared of Penny to try to reproduce it, I wasn't able to repro on a clean project yesterday. |
Description
There are a lot more similar
Failed to satisfy
errors.Reproduction
Try to use the OpenAPI Generator on https://github.com/github/rest-api-description/blob/main/descriptions-next/api.github.com/api.github.com.yaml
Package version(s)
generator 1.6.0
runtime 1.7.0
Expected behavior
work.
Environment
Swift 6.0.3
Additional information
No response
The text was updated successfully, but these errors were encountered: