kube-rs / kopium

Kubernetes OPenapI UnMangler
Apache License 2.0
113 stars 21 forks source link

support unknown integer & number formats #223

Closed sebhoss closed 7 months ago

sebhoss commented 7 months ago

https://github.com/kyverno/chainsaw/blob/main/.crds/chainsaw.kyverno.io_configurations.yaml uses a type: integer with format: int which is currently not supported in kopium. According to the openapi spec, tools that do not recognize a specific format may fallback to the type value alone which is currently mapped to i64 for integers and f64 for numbers. This change brings kopiums behavior in line with the openapi spec and allows such unknown formats to exist in CRDs.