You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When validating OpenAPI schemas using the github.com/go-openapi/validate v0.20.2 package, a numeric field within a nested structure incorrectly fails validation when its type is specified to be any of string or integer.
when I try to set:
spec:
domain:
memory:
guest: 2312241152
Error Example:
[spec.template.spec.domain.memory.guest in body must be of type string: "number"]
of course it works fine with
spec:
domain:
memory:
guest: "2312241152"
the schema in the crd:
guest:
anyOf:
- type: integer
- type: string
The text was updated successfully, but these errors were encountered:
Description:
When validating OpenAPI schemas using the
github.com/go-openapi/validate v0.20.2
package, a numeric field within a nested structure incorrectly fails validation when its type is specified to be any of string or integer.when I try to set:
Error Example:
of course it works fine with
the schema in the crd:
The text was updated successfully, but these errors were encountered: