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

feat: update the merge logic to generate an OAS where the fields are in the same order as the Atlas OAS #35

Merged
merged 4 commits into from
May 10, 2024

Conversation

andreaangiolillo
Copy link
Collaborator

@andreaangiolillo andreaangiolillo commented May 9, 2024

Context

The merge command prints the fields of the generated FOAS in the following order
Example:

{
  "components": {},
  "info": {},
  "openapi": {},
  "paths": {},
  "servers": {},
  "tags": {}
}

The Atlas OAS has the following order instead

{
  "openapi": {},
  "info": {},
  "servers": {},
  "tags": {},
  "paths": {},
  "components": {}
}

Proposed changes

Update the merge command logic to generate a FOAS spec where the root elements have the same order as the Atlas OAS

@andreaangiolillo andreaangiolillo marked this pull request as ready for review May 10, 2024 09:37
@andreaangiolillo andreaangiolillo requested a review from a team as a code owner May 10, 2024 09:37
@andreaangiolillo andreaangiolillo changed the title feat: update the merge logic to generate an OAS where the fields are the same order as Atlas OAS feat: update the merge logic to generate an OAS where the fields are in the same order as the Atlas OAS May 10, 2024
@andreaangiolillo andreaangiolillo merged commit 9f3d7b9 into main May 10, 2024
5 checks passed
@andreaangiolillo andreaangiolillo deleted the feat_update_output_order branch May 10, 2024 09:53
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.

2 participants