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
I have a multi directory schema structure and using $ref to refrence in respective files.
Then i'm using the openapi3 loader to load the parent spec and using internalizeRefs to resolve $ref s.
While this works fine but the schema parameters are getting sorted in alphabetical order in the parsed schema.
example:
defined schema:
Looks like whole parsed schema is being sorted alphabetically.
Any help here ?
sheikhasim
changed the title
InternalizeRefs sorts the refrenced schema in alphabetical order
LoadFromfile sorts the refrenced schema in alphabetical order
Mar 26, 2024
sheikhasim
changed the title
LoadFromfile sorts the refrenced schema in alphabetical order
LoadFromFile sorts the refrenced schema in alphabetical order
Mar 26, 2024
I have a multi directory schema structure and using $ref to refrence in respective files.
Then i'm using the openapi3 loader to load the parent spec and using internalizeRefs to resolve $ref s.
While this works fine but the schema parameters are getting sorted in alphabetical order in the parsed schema.
example:
defined schema:
type: object
properties:
username:
type: string
first_name:
type: string
last_name:
type: string
email:
type: string
format: email
enabled:
type: boolean
roles:
type: array
items:
$ref: "#/userRole"
attribute_key:
type: string`
Parsed schema :
```
User:
properties:
attribute_key:
type: string
email:
format: email
type: string
enabled:
type: boolean
first_name:
type: string
last_name:
type: string
roles:
items:
$ref: '#/components/schemas/userRole'
type: array
username:
type: string`
The text was updated successfully, but these errors were encountered: