Describe enc_key as a single string instead of a oneOf of two strings #84
Reference in New Issue
Block a user
No description provided.
Delete Branch "epicstyt/vitastor:fix-openapi-enc-key"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
The trouble is that both branches are strings, while
discriminator— the only mechanism OpenAPI has for tellingoneOfbranches apart — requires the value to be an object. Generators have nothing to work with, and not one of them warns:enumandpatternlost with itenum { String(String), String(String) }, does not compile (E0428)str, so every value matches both and is rejected at runtime as "Multiple matches found" —""andrandomincluded. The field cannot be used at all.Contributor Name
Stepan Rabotkin
CLA