-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
Generation of client with yaml from swagger ui dont validate Spec #146
Comments
Thanks, will be fixed in 2.2.0 |
with latest 3.0 i got also the problem (different) sudo npx @openapitools/openapi-generator-cli generate -i docs-yaml -g rust -o /tmp/test2/
we must validate the spec automaticly in the CI/CD i think to reproduce in fedora
|
@Alfagun74 its not fixed :/ or in https://apitools.dev/swagger-parser/online/ |
damn, i double checked actually. Let me see what i can do. |
fixed in v4.0.0, the next version, sorry again. |
thanks i want to do a simple cli to download some games and maybe looking how to do a client but i'm not a dev :/ |
sorry to bother you again but again the spec are not valid npx @openapitools/openapi-generator-cli generate -i https://games.XXXXX.fr/api/docs-yaml -g typescript -o typescript-gamevault
|
I don't know how to but some github workflow will help |
fixed, if you want automatic validation, id be happy to accept a pr |
Download https://demo.gamevau.lt/api/docs-yaml
then try to generate a client with this command
sudo npx @openapitools/openapi-generator-cli generate -i test.yaml -g rust -o /tmp/test2/
Exception in thread "main" org.openapitools.codegen.SpecValidationException: There were issues with the specification. The option can be disabled via validateSpec (Maven/Gradle) or --skip-validate-spec (CLI).
| Error count: 1, Warning count: 0
Errors:
-attribute components.schemas.Game.items is missing
The text was updated successfully, but these errors were encountered: