(doc: OpenAPI.Document)
| 153 | // --------------------------------------------------------------------------- |
| 154 | |
| 155 | const isOpenApi3 = (doc: OpenAPI.Document): doc is OpenAPIV3.Document | OpenAPIV3_1.Document => |
| 156 | "openapi" in doc && typeof doc.openapi === "string" && doc.openapi.startsWith("3."); |
| 157 | |
| 158 | /** Parse JSON or YAML text into an object without applying OpenAPI version validation. */ |
| 159 | export const parseSpecObject = (text: string): Effect.Effect<OpenAPI.Document, OpenApiParseError> => |