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

OpenAPI: Sort parameters for stable output #22043

Merged
merged 1 commit into from
Jul 25, 2023

Conversation

maxb
Copy link
Contributor

@maxb maxb commented Jul 25, 2023

In my recent #21942, I overlooked the need to sort another part of the
OpenAPI document to ensure stable output.

I've also removed strings.ToLower() from the code I copied from, as
this code is sorting Vault API parameter names, which are all lowercase
anyway!

In my recent hashicorp#21942, I overlooked the need to sort another part of the
OpenAPI document to ensure stable output.

I've also removed `strings.ToLower()` from the code I copied from, as
this code is sorting Vault API parameter names, which are all lowercase
anyway!
@maxb
Copy link
Contributor Author

maxb commented Jul 25, 2023

Requesting pr/no-changelog due to minor nature of change.

@averche averche self-requested a review July 25, 2023 15:25
@averche averche self-assigned this Jul 25, 2023
@averche averche added this to the 1.15 milestone Jul 25, 2023
Copy link
Contributor

@averche averche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks!

@averche averche merged commit e13ccf9 into hashicorp:main Jul 25, 2023
@maxb maxb deleted the openapi-sort-stable-output branch July 25, 2023 15:38
averche pushed a commit to hashicorp/vault-client-go that referenced this pull request Jul 25, 2023
* hashicorp/vault#21934 - a standard response structure is applied to
  all list operations that do not explicitly override it

* hashicorp/vault#22043 - query parameters will now appear as method
  parameters in alphabetic order, rather than at the whims of Go map
  iteration order
averche pushed a commit to hashicorp/vault-client-dotnet that referenced this pull request Jul 25, 2023
Sync OpenAPI: StandardListResponse & sorted query parameters

* hashicorp/vault#21934 - a standard response structure is applied to
  all list operations that do not explicitly override it

* hashicorp/vault#22043 - query parameters will now appear as method
  parameters in alphabetic order, rather than at the whims of Go map
  iteration order
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants