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
The text was updated successfully, but these errors were encountered:
yyvess
changed the title
[import] The import function for CRD is not correctly converting fields that have constraints 'oneOf', 'not', and 'anyOf'
[bug] The import function for CRD is not correctly converting fields that have constraints 'oneOf', 'not', and 'anyOf'
Feb 4, 2024
yyvess
changed the title
[bug] The import function for CRD is not correctly converting fields that have constraints 'oneOf', 'not', and 'anyOf'
[bug] The import function vendor crd not correctly converting fields that have constraints 'oneOf', 'not', and 'anyOf'
Feb 4, 2024
@yyvess there was a fix in CUE that is meant to resolve this issue (cue-lang/cue@bfce150), I opened #424, it'd be great if you could test it with your use-case.
The import function vendor crd not correctly converting fields that have constraints 'oneOf', 'not', and 'anyOf'
Not sure if the bug is on Timoni or in Cue, perhaps around it https://github.com/cue-lang/cue/blob/64a117c07a084f82970596f3ac67023087952f4f/encoding/jsonschema/constraints.go#L288 ?
Command used
timoni mod vendor crd -f https://raw.githubusercontent.com/istio/istio/1.20.2/manifests/charts/base/crds/crd-all.gen.yaml
As exemple the field method declared on the Istio crd to enforce that one and only one property exact, prefix or regex is defined as is
The CUE output not corresponding and don't allow to set any property on method
The text was updated successfully, but these errors were encountered: