import { type SwaggerToTSOptions } from "https://deno.land/x/revolt_api@0.4.0/scripts/types.ts";
Properties
(optional) Specify current working directory (cwd) to resolve remote schemas on disk (not needed for remote URL schemas)
Specify a formatter
(optional) Treat schema objects with default values as non-nullable
(optional) Parsing input document as raw schema rather than OpenAPI document
(optional) List of HTTP headers that will be sent with the fetch request to a remote schema. This is in addition to the authorization header. In some cases, servers require headers such as Accept: application/json or Accept: text/yaml to be sent in order to figure out how to properly fetch the OpenAPI/Swagger document as code. These headers will only be sent in the case that the schema URL protocol is of type http or https.
HTTP verb used to fetch the schema from a remote server. This is only applied when the schema is a string and has the http or https protocol present. By default, the request will use the HTTP GET method to fetch the schema from the server.