From what the specfication mentions here, requestBody must be marked with "required": true, otherwise they are considered optional - "Request bodies are optional by default. To mark the body as required, use required: true."
For the kubernetes requests that accept a request body, the body does seem a mandatory parameter. So looks like the specification generation for OpenAPI v3 needs to address this.
This is an example of this issue in the OpenAPI V3 specification of
createBatchV1NamespacedCronJob
The same in the OpenAPI V2 specification is marked as required.
From what the specfication mentions here,
requestBody
must be marked with"required": true
, otherwise they are considered optional - "Request bodies are optional by default. To mark the body as required, use required: true."For the kubernetes requests that accept a request body, the body does seem a mandatory parameter. So looks like the specification generation for OpenAPI v3 needs to address this.