Closed juliandm closed 2 years ago
@juliandm This seems to be a good catch. I will try to take a look at this later today.
I took a look at this. This seems to be a problem with our OAS validator oas-validator. This is more evidence that we should switch to a different OAS validator.
Related: #410, #334
Huh, the interesting thing is that the maintainer of this OAS is also a maintainer of oas-validator.
I think this might be invalid according to OAS.
https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#path-templating
The value for these path parameters MUST NOT contain any unescaped "generic syntax" characters described by RFC3986: forward slashes (/), question marks (?), or hashes (#).
It seems like paths should not contain unescaped "#". As a result, I do not expect this should work. I will close this issue for now.
Describe the bug I was trying to run the cli on the aws s3 api schema but got following error:
OpenAPI-to-GraphQL creation event error: expected '/{Bucket}/{Key}#uploadId' not to contain '#' (false negative fail)
To Reproduce Steps to reproduce the behavior:
openapi-to-graphql test.yaml
Expected behavior I expect it to parse