(doc: OpenAPI.Document)
| 96 | // --------------------------------------------------------------------------- |
| 97 | |
| 98 | const isOpenApi3 = (doc: OpenAPI.Document): doc is OpenAPIV3.Document | OpenAPIV3_1.Document => |
| 99 | "openapi" in doc && typeof doc.openapi === "string" && doc.openapi.startsWith("3."); |
| 100 | |
| 101 | /** Parse JSON or YAML text into an object without applying OpenAPI version validation. */ |
| 102 | export const parseSpecObject = (text: string): Effect.Effect<OpenAPI.Document, OpenApiParseError> => |