Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Undeclared parameters in server url should not validate #84

Open
berzi opened this issue Oct 13, 2022 · 0 comments
Open

Undeclared parameters in server url should not validate #84

berzi opened this issue Oct 13, 2022 · 0 comments

Comments

@berzi
Copy link

berzi commented Oct 13, 2022

Given the following schema:

openapi: 3.1.0
info:
  title: Test
  version: 1.0.0

servers:
  - url: "https://example.com/{someParameter}/etc/{anotherParameter}"
    variables:
      someParameter:
        default: sometest123

paths: {}

Note how someParameter has a corresponding variable object, but anotherParameter doesn't. This probably should not be accepted, but swagger-cli validates the spec with no errors.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant