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

TakesArbitraryInput fixes #22027

Merged
merged 1 commit into from
Jul 24, 2023
Merged

Conversation

maxb
Copy link
Contributor

@maxb maxb commented Jul 23, 2023

Update the OpenAPI generation code to render TakesArbitraryInput
appropriately.

Mark the cubbyhole write operation as TakesArbitraryInput.

Contributes to fixing
hashicorp/vault-client-go#201.

We will also need
hashicorp/vault-plugin-secrets-kv#114 merged and
a new version of that plugin brought into Vault.

Update the OpenAPI generation code to render TakesArbitraryInput
appropriately.

Mark the cubbyhole write operation as TakesArbitraryInput.

Contributes to fixing
hashicorp/vault-client-go#201.

We will also need
hashicorp/vault-plugin-secrets-kv#114 merged and
a new version of that plugin brought into Vault.
@maxb
Copy link
Contributor Author

maxb commented Jul 23, 2023

This is a tiny part of general trends toward making the OpenAPI better, so I'm inclined to say just pr/no-changelog it as it's just not interesting enough on its own. But let me know if you disagree.

averche pushed a commit to hashicorp/vault-client-go that referenced this pull request Jul 23, 2023
Contributes to fixing #201

These template changes make no difference to the code right now, but
combined with the incoming OpenAPI changes in hashicorp/vault#22027 and
hashicorp/vault-plugin-secrets-kv#114 will effect the fix.
@maxb
Copy link
Contributor Author

maxb commented Jul 23, 2023

We will also need
hashicorp/vault-plugin-secrets-kv#114 merged and
a new version of that plugin brought into Vault.

#22028 opened to bring that into Vault.

@averche averche self-requested a review July 24, 2023 17:29
@averche averche self-assigned this Jul 24, 2023
@averche averche added this to the 1.15 milestone Jul 24, 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.

LGTM, thanks a lot for this!

@averche averche merged commit 9352dc5 into hashicorp:main Jul 24, 2023
88 of 96 checks passed
@maxb maxb deleted the openapi-takesarbitraryinput branch July 25, 2023 03:41
averche pushed a commit to hashicorp/vault-client-go that referenced this pull request Jul 25, 2023
This includes the results of:
* hashicorp/vault#21949
* hashicorp/vault#21942
* hashicorp/vault#22027

The general direction of change is pretty positive, but in reviewing the
generated diffs, I have spotted an issue: we are now generating correct
parameters for query parameters... but those query parameters are being
handled as individual function parameters... which are generated in the
order listed in the OpenAPI spec... which is dependent on random Go hash
iteration ordering. Ugh.

Oh well, let's catch up with latest developments in the Vault repo for
now, and I'll go put in a new PR to at least sort the parameters
alphabetically.

Longer term, this is probably going to push us in the direction of
excluding the GET version of APIs with equivalent GET and POST versions
from the generated libraries.
averche pushed a commit to hashicorp/vault-client-dotnet that referenced this pull request Jul 25, 2023
…150)

* Sync OpenAPI; Multiple parameter correctness changes

This includes the results of:
* hashicorp/vault#21949
* hashicorp/vault#21942
* hashicorp/vault#22027

The general direction of change is pretty positive, but in reviewing the
generated diffs, I have spotted an issue: we are now generating correct
parameters for query parameters... but those query parameters are being
handled as individual function parameters... which are generated in the
order listed in the OpenAPI spec... which is dependent on random Go hash
iteration ordering. Ugh.

Oh well, let's catch up with latest developments in the Vault repo for
now, and I'll go put in a new PR to at least sort the parameters
alphabetically.

Longer term, this is probably going to push us in the direction of
excluding the GET version of APIs with equivalent GET and POST versions
from the generated libraries.

* Update the templates with a missing using directive
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.

None yet

2 participants