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

Question: Consistent and deterministic order in OAS #156

Open
g-stone7 opened this issue Nov 27, 2024 · 0 comments
Open

Question: Consistent and deterministic order in OAS #156

g-stone7 opened this issue Nov 27, 2024 · 0 comments

Comments

@g-stone7
Copy link

I am using this tool to export my api as OAS and generate clients/consumers from it for an angular application. The plugin seems to not generate a consistent order and on every generation there are a feq changes in the git changelog only due to a changed order. From my observations it mainly affects the responses part of the oas per endpoint.

Example

  1. Generate oas
  2. Add a new endpoint
  3. Generate oas again

Expected
Diff should only contain changes added in step 2.

Actual
Diff contains changes added in step 2 + some responses have a diff only because of a changed order

It is not a real issue, but having a deterministic oas generation would keep the diffs small and better understandable. Is there a config option maybe? If not, can this be added?

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

No branches or pull requests

1 participant