thim81 / openapi-format

Format an OpenAPI document by ordering, formatting and filtering fields.
MIT License
77 stars 14 forks source link

Update defaultSort.json #69

Closed shpoont closed 1 year ago

shpoont commented 1 year ago

Update requestBody according to the spec

thim81 commented 1 year ago

Hi @shpoont,

Thanks for the PR. Would you mind sharing the spec where this is described so I can update the readme?

shpoont commented 1 year ago

Hi, this is according to https://spec.openapis.org/oas/v3.0.0#request-body-object

thim81 commented 1 year ago

@shpoont Thanks again for taking the time to create the PR.

thim81 commented 1 year ago

@shpoont just fyi: This will be part of the next release, if you would need this earlier you can pass along your custom sorting settings using the "--sortFile" CLI option.

shpoont commented 1 year ago

No worries, I am using --sortFile already :)

Thanks!