Skip to content

Commit c529d78

Browse files
management_api: fail closed on ambiguous connection options oneOf
CreateConnectionReqOptions, ReplaceConnectionReqOptions and UpdateConnectionReqOptions silently defaulted to variant 0 when no discriminator key matched (!found), instead of erroring. With variants now sharing keys like is_trusted/is_use_custom_domain, an ambiguous or malformed payload could get silently decoded as the wrong connection type instead of failing. Restored the fail-fast error.
1 parent 92be3bb commit c529d78

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

kinde/management_api/oas_json_gen.go

Lines changed: 6 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)