-
-
Notifications
You must be signed in to change notification settings - Fork 337
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
OpenAPI spec parsing bug #1602
Comments
@sengeezer i see its referencing params like |
Also I see this |
For example here is one of mine. "/administrator/queue/{id}" : {
"get" : {
"tags" : [ "Mobile Synchronization Administrator Resource" ],
"parameters" : [ {
"name" : "id",
"in" : "path",
"required" : true,
"schema" : {
"format" : "int64",
"minimum" : 0,
"type" : "integer"
}
} ],
"responses" : {
"200" : {
"description" : "OK",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/IosNotificationQueue"
}
}
}
}
}
}
}, see how the path param |
Ok, I can see I've sanitised the spec into invqalidity. I have asked for permission to share more. |
I also just verified that your competitor (?) openapi-ts also has no issues parsing the same OpenAPI spec. Hopefully I will recieve approval so Orval is not the only one to barf on the spec. :) |
looks like openapi-ts doesn't do TanStack Query? only native Fetch? |
Ok, my infosec analyst has approved the following. Will this help?
|
if you run the above through the CLI does it error the same way? |
It does, yes. The new stack trace:
|
@anymaniax / @melloware : Are there any updates on this? Could you give me an ETA for this to be fixed? I can confirm that v7.1.0 does NOT fix this bug. |
No ETA from my end i would expect someone in the community needs to submit a PR to fix this issue. |
What are the steps to reproduce this issue?
What happens?
Orval fails to complete the generation process.
What were you expecting to happen?
Orval should have completed the generation process successfully.
Any logs, error output, etc?
Any other comments?
I had a conversation about this on the Orval DIscord on August 23 2024 (username: helveticDev).
The OpenAPI spec validates and works without issues with
npx openapi-typescript
.What versions are you using?
The text was updated successfully, but these errors were encountered: