-
Notifications
You must be signed in to change notification settings - Fork 840
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 (OAS 3.0) deepObject incorrect rendering on import. #9053
Comments
@n2ygk Thanks for reporting issue. The issue is happening due to wrong handling of empty objects, which is fixed with postmanlabs/openapi-to-postman#294 and should be available in App with upcoming releases. This will mean that for mentioned parameter object no query params will be added. Also just to confirm that issue is present only when no properties are mentioned for schema with type i.e. for following query
below mentioned query params should be present.
|
@VShingala Thanks! For the time being I've changed my definition like this: fields:
name: fields
in: query
description: '[sparse fieldsets](https://jsonapi.org/format/#fetching-sparse-fieldsets).
Use fields[\<typename\>]=field1,field2,...,fieldN'
required: false
style: deepObject
schema:
type: object
properties:
<typename>:
type: string
explode: true
This generates a single query parameter like this: |
@n2ygk This issue has been resolved with the latest App release v7.33. Closing this for now. |
@VShingala I don't think this is fixed. I'm seeing the same behavior with v7.35 for this: fields:
name: fields
in: query
description: '[sparse fieldsets](https://jsonapi.org/format/#fetching-sparse-fieldsets).
Use fields[\<typename\>]=field1,field2,...,fieldN'
required: false
style: deepObject
schema:
type: object
explode: true |
@n2ygk 🤔 I verified the solution for option I will reopen this issue, and keep this thread updated with any development. Thanks for testing it. |
@n2ygk This issue has been fixed for some time now. Current behavior is for both I'll close the issue, but feel free to re-open if you face any further problems. |
Describe the bug
Import of a deepObject parameter definition results in incorrect query parameters.
To Reproduce
Steps to reproduce the behavior:
&fields[0]=<&fields[1]=o&fields[2]=b&fields[3]=j&fields[4]=e&fields[5]=c&fields[6]=t&fields[7]=>
and note that this is the word spelled out.Expected behavior
Not quite sure other than perhaps ignore deepObjects when converting to query parameters. Certainly spelling out the word
<object>
is not the right behavior.App information (please complete the following information):
t4.yaml.txt
The text was updated successfully, but these errors were encountered: