Skip to content
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

Fix the issue with invalid example value generation for an array based query parameter #1465

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yogeshnikam671
Copy link
Member

What:
Currently when an example is generated for an endpoint where the query parameter is an array, following kind of query value is generated in the example file.

"query": {
            "queries": "[YRFBM, XURHT, DATUF, QYART, QTEKV]"
 }

This is an invalid format. This PR fixes this issue.

How:
The issue is fixed by properly serialising such array based query parameters and storing it in the example file in the correct format as follows.

"query":{
  "queries": ["YRFBM", "XURHT", "DATUF", "QYART", "QTEKV"]
}

Checklist:

Issue ID:
Closes: #1453

@yogeshnikam671 yogeshnikam671 force-pushed the json_array_query_example_gen_bug_fix branch from 38745cc to 354cb0f Compare December 6, 2024 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cli: invalid generation of json arrays
1 participant