Arnavion / k8s-openapi

Rust definitions of the resource types in the Kubernetes client API
Apache License 2.0
386 stars 41 forks source link

OpenAPI v3 support #117

Open Arnavion opened 2 years ago

Arnavion commented 2 years ago

https://github.com/kubernetes/kubernetes/blob/9d278e622427d307d50c1c2440b556005e2f8769/CHANGELOG/CHANGELOG-1.24.md#openapi-v3

Kubernetes 1.24 offers beta support for publishing its APIs in the OpenAPI v3 format.

Compare with the v2 schema to see if anything is documented more precisely, eg using oneOf etc.


https://github.com/kubernetes/kubernetes/tree/dfee09a27da7f409c46c37e0b93fe067eafa4ae9/api/openapi-spec/v3

(Refs: https://swagger.io/specification/ | https://datatracker.ietf.org/doc/html/draft-wright-json-schema-validation-00 )

The v3 schema doesn't seem to have much that's different from the v2 schema, let alone better.

So at this point the only reason to implement support for this would appear to be users wanting to run the generator against their own clusters.