vault icon indicating copy to clipboard operation
vault copied to clipboard

openapi: fix missing request schema for custom plugins

Open berkitamas opened this issue 7 months ago • 2 comments

Description

This pull request resolves #30714.

If a custom plugin is added to Vault, OpenAPI Explorer does not show properly the Request body for the plugin's POST endpoints. It shows a "string" instead of filling out the parameters based on the path fields.

github.com/mitchellh/mapstructure does a strings.EqualFold check between a struct key and a map key. This does not work for $ref key, a custom name match is needed to cover this edge case.

berkitamas avatar May 21 '25 23:05 berkitamas

CLA assistant check
All committers have signed the CLA.

hashicorp-cla-app[bot] avatar May 21 '25 23:05 hashicorp-cla-app[bot]

@berkitamas is attempting to deploy a commit to the HashiCorp Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Aug 18 '25 20:08 vercel[bot]