Skip to content

Allow "$schema" via schema.json #1719

Closed
@VannaDii

Description

@VannaDii

The schema should allow the "$schema" element in the referencing document.

Sample Document

{
  "$schema": "https://github.com/raw/OAI/OpenAPI-Specification/master/schemas/v2.0/schema.json",
  "swagger": "2.0",
  "info": {
    "title": "My Service API",
    "version": "0.0.1"
  },
  "paths": {}
}

"Property $schema is not allowed."

{
	"resource": "/Users/gpalacino/Source/play/service/service-api/openapi.json",
	"owner": "_generated_diagnostic_collection_name_#0",
	"code": null,
	"severity": 4,
	"message": "Property $schema is not allowed.",
	"startLineNumber": 2,
	"startColumn": 3,
	"endLineNumber": 2,
	"endColumn": 12
}

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