You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No matter how I order request parameters for my endpoints, whether I use x-position to reorder parameters or not, the request parameters are always sorted by required, then alphabetically.
Context
We use standard parameter names in our request queries - StartDate, EndDate, LastUpdatedDate. The first two are required, the last one is optional. The parameters are always sorted alphabetically, regardless of their appearance in the schema.
I've fixed the order of endpoints and groups by sorting them correctly, but parameter order is not preserved in any way in stoplight.
Current Behavior
Expected Behavior
Possible Workaround/Solution
Rename parameters in the schema so that they are sorted the right way, i.e. add a space before a parameter.
It will be shown in the right order, but the Try It functionality will be cooked.
Steps to Reproduce
Run Stoplight Elements on top of any schema that has parameters.
Play with parameter ordering in the schema.
Try adding x-position to the parameters.
The extract from the schema:
No matter how I order request parameters for my endpoints, whether I use
x-position
to reorder parameters or not, the request parameters are always sorted by required, then alphabetically.Context
We use standard parameter names in our request queries -
StartDate
,EndDate
,LastUpdatedDate
. The first two are required, the last one is optional. The parameters are always sorted alphabetically, regardless of their appearance in the schema.I've fixed the order of endpoints and groups by sorting them correctly, but parameter order is not preserved in any way in stoplight.
Current Behavior
Expected Behavior
Possible Workaround/Solution
Rename parameters in the schema so that they are sorted the right way, i.e. add a space before a parameter.
It will be shown in the right order, but the Try It functionality will be cooked.
Steps to Reproduce
x-position
to the parameters.The extract from the schema:
Tried 7.7.18 and 7.10.0
Edge Version 116.0.1938.76 (Official build) (64-bit)
Node 18
React 18.2
Windows 10 22H2
The text was updated successfully, but these errors were encountered: