Skip to content

SortTypes issue #361

@NikYushchenko

Description

@NikYushchenko

Hello. I caught one issue with the sort function.

image

content: schema.rawTypeData['$parsed'].content.sort(sortByName)}

After some research I've found that in openapi we have this
"TriggerAPISchema": "title":"TriggerAPISchema","type":"object","properties":{}}
which in the code has content: 'object', where sort is undefined.

I think it would be good to add validation Array.isArray(schema.rawTypeData['$parsed'].content)
image

#299

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions