kubernetes-client / gen

Common generator scripts for all client libraries
Apache License 2.0
150 stars 147 forks source link

`CustomObjectsApi` is missing `field_validation` functionality present in all concrete object APIs #259

Closed arcivanov closed 6 months ago

arcivanov commented 6 months ago

What happened (please include outputs or screenshots):

field_validation is missing as an accepted parameter from all POST/PATCH/PUT endpoint methods in the CustomObjectsApi.

What you expected to happen:

The CustomObjectsApi having API parity with concrete objects.

How to reproduce it (as minimally and precisely as possible):

Problem is self-evident from code analysis below

Anything else we need to know?:

https://github.com/kubernetes-client/python/blob/master/kubernetes/docs/CustomObjectsApi.md#parameters-18 vs https://github.com/kubernetes-client/python/blob/master/kubernetes/docs/AppsV1Api.md#parameters-26

Observe the field_validation being present in the latter but not the former.