VAULT-7698 Fix ignored parameter warnings for endpoint arbitrary data options (#16794)

* VAULT-7698 Fix warnings for endpoint arbitrary data options

* VAULT-7698 Add changelog
This commit is contained in:
Violet Hynes
2022-08-23 08:51:23 -04:00
committed by GitHub
parent f46941f5c0
commit 0de67d5b04
5 changed files with 27 additions and 1 deletions

View File

@@ -116,6 +116,12 @@ type Path struct {
// DisplayAttrs provides hints for UI and documentation generators. They
// will be included in OpenAPI output if set.
DisplayAttrs *DisplayAttributes
// TakesArbitraryInput is used for endpoints that take arbitrary input, instead
// of or as well as their Fields. This is taken into account when printing
// warnings about ignored fields. If this is set, we will not warn when data is
// provided that is not part of the Fields declaration.
TakesArbitraryInput bool
}
// OperationHandler defines and describes a specific operation handler.