logical.importOpenApifunctionno test imports itfunction importOpenApi(source: string, text: string): FoundThe endpoints of a description.
OpenAPI and Swagger descriptions, as JSON or YAML: every server of the description is an endpoint (a templated address takes the default of its variable; a relative address has no host and is a problem, because it is only where the description was served from), with the way a client proves who it is from the security the description declares (none where it declares none, the strongest where it declares several), and api: openapi. Operations and schemas are not read.
import { importOpenApi } from "./openapi.ts";
importOpenApi("api.json", JSON.stringify({ openapi: "3.0.3", servers: [{ url: "https://api.example.test/v1" }] })).assets.length; // 1logical.importOpenApifunctionno test imports itfunction importOpenApi(source: string, text: string): FoundThe endpoints of a description.
importOpenApifunctionfunction importOpenApi(source: string, text: string): FoundThe endpoints of a description.