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

False positive: #/servers/0/variables/someParameter must NOT have unevaluated properties #83

Open
@berzi

Description

@berzi

Given the following spec:

openapi: 3.1.0
info:
  title: Test
  version: 1.0.0

servers:
  - url: "https://example.com/{someParameter}"
    variables:
      someParameter:
        default: sometest123
        description: Some description!

paths: {}

swagger-cli reports:

Swagger schema validation failed.
#/servers/0/variables/someParameter must NOT have unevaluated properties

The error goes away if I remove the description property.

The error message is rather arcane (what is an unevaluated property? What does it mean for a property to be "unevaluated"? What can I do to fix this?), but besides that, the error is, as far as I can tell, a false positive, because the specification for openapi 3.1.0 allows this schema and the description property.

This only occurs for 3.1.0: if I change the first line to openapi: 3.0.3 the schema validates correctly. Note that the description property is allowed on both the mentioned versions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions