toOpenApi31
Converts this OpenAPI object to a version 3.1 OpenAPI object.
Caveats
This function performs a partial copy of the OpenAPI object (it only copies parts that are changed during the conversion process), i.e. the resulting object has some same instances as the original object (it is not a deep copy)
Note that x-oas-*
and x-oai-*
extensions will be removed during the conversion, including in the original object.