We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
string
explode: true
Progress of the issue based on the Contributor Workflow
Make sure to fork this template and run yarn generate in the terminal. Please make sure Mesh package versions under package.json matches yours.
Make sure to fork this template and run yarn generate in the terminal.
yarn generate
Please make sure Mesh package versions under package.json matches yours.
package.json
Describe the bug
The following OpenAPI spec fails to include the expected explodedString query string parameter:
explodedString
parameters: - name: explodedString in: query explode: true schema: type: string
The issue is related to the combination of explode: true and type: string.
type: string
To Reproduce Steps to reproduce the behavior:
# .meshrc.yml sources: - name: PetStore handler: openapi: baseUrl: https://petstore3.swagger.io/api/v3 source: https://petstore3.swagger.io/api/v3/openapi.json
Execute this query:
{ findPetsByStatus(status: available) { id } }
See an error response:
{ "data": { "findPetsByStatus": null }, "errors": [ { "message": "Unexpected response", "path": [ "findPetsByStatus" ], "extensions": { "url": "https://petstore3.swagger.io/api/v3/pet/findByStatus?", "method": "GET", "responseText": "No status provided. Try again?", "error": { "name": "SyntaxError", "message": "Unexpected 'N'", "at": 1, "text": "No status provided. Try again?" } } } ] }
Notice "url": "https://petstore3.swagger.io/api/v3/pet/findByStatus?" is missing the status=available query string parameter.
"url": "https://petstore3.swagger.io/api/v3/pet/findByStatus?"
status=available
If I change explode: true in the PetStore spec to explode: false, the issue no longer reproduces.
explode: false
Expected behavior
{ "data": { "findPetsByStatus": [ { "id": 1 } ] } }
Environment:
@graphql-mesh/openapi
^0.33.26
Additional context
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Issue workflow progress
Progress of the issue based on the Contributor Workflow
Describe the bug
The following OpenAPI spec fails to include the expected
explodedString
query string parameter:The issue is related to the combination of
explode: true
andtype: string
.To Reproduce
Steps to reproduce the behavior:
Execute this query:
See an error response:
Notice
"url": "https://petstore3.swagger.io/api/v3/pet/findByStatus?"
is missing thestatus=available
query string parameter.If I change
explode: true
in the PetStore spec toexplode: false
, the issue no longer reproduces.Expected behavior
Environment:
@graphql-mesh/openapi
:^0.33.26
Additional context
explode: true
with strings doesn't make much sense, but it also seems like a case we should supportThe text was updated successfully, but these errors were encountered: