From ff9523c0867158186301825d58931802c5b14808 Mon Sep 17 00:00:00 2001 From: Paul Salaberria Date: Fri, 3 May 2024 17:25:38 +0200 Subject: [PATCH] Fix link to 3.1 spec in docs (#256) --- docs/openapi-parser.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/openapi-parser.md b/docs/openapi-parser.md index d92becdb..75d7e645 100644 --- a/docs/openapi-parser.md +++ b/docs/openapi-parser.md @@ -60,7 +60,7 @@ A callback that will receive the dereferenced and validated [Swagger object](htt - **Return Value:** `Promise`
See [Callbacks vs. Promises](README.md#callbacks-vs-promises) -Validates the Swagger API against the [Swagger 2.0 schema](https://github.com/OAI/OpenAPI-Specification/blob/main/schemas/v2.0/schema.json), [OpenAPI 3.0 Schema](https://github.com/OAI/OpenAPI-Specification/blob/main/schemas/v3.0/schema.json), or [OpenAPI 3.1 Schema](https://github.com/OAI/OpenAPI-Specification/blob/main/schemas/v3.0/schema.json). +Validates the Swagger API against the [Swagger 2.0 schema](https://github.com/OAI/OpenAPI-Specification/blob/main/schemas/v2.0/schema.json), [OpenAPI 3.0 Schema](https://github.com/OAI/OpenAPI-Specification/blob/main/schemas/v3.0/schema.json), or [OpenAPI 3.1 Schema](https://github.com/OAI/OpenAPI-Specification/blob/main/schemas/v3.1/schema.json). If [the `validate.spec` option](options.md#validate-options) is enabled, then this method also validates against the [Swagger 2.0 spec](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md). The specification validator will catch some things that aren't covered by the Swagger 2.0 Schema, such as duplicate parameters, invalid MIME types, etc.