A flexible JSON/YAML linter for creating automated style guides, with baked in support for OpenAPI (v3.1, v3.0, and v2.0), Arazzo v1.0, as well as AsyncAPI v2.x.
Describe the bug
Path param variables are not checked for existance/consistency with respective path declaration.
It seems that the field name spec here is not checked: https://spec.openapis.org/oas/v3.1.0#fixed-fields-9
To Reproduce
All the documents bellow are considered "valid" but I suspect they should not.
openapi: "3.0.0"
info:
title: Simple API overview
version: 2.0.0
paths:
/users/{id}: # id is not defined
get:
responses:
'200':
description: successful operation
Describe the bug Path param variables are not checked for existance/consistency with respective path declaration. It seems that the field name spec here is not checked: https://spec.openapis.org/oas/v3.1.0#fixed-fields-9
To Reproduce
All the documents bellow are considered "valid" but I suspect they should not.
Environment (remove any that are not applicable): npx @stoplight/spectral-cli --version: 6.6.0 WSL 2 ubuntu 20.04