Skip to content

lint: default and $ref causing early process exit  #425

@jeremyfiel

Description

@jeremyfiel

running jsonschema lint specs/common/ on a folder full of schemas... I received this error but no reference to the file that has the invalid reference

error: Could not resolve the reference to an external schema
file:///C:/Users/fieljere/repos/api-specs/specs/common/indicatorType_v01.json

This is likely because you forgot to import such schema using --resolve/-r

the schema referenced is very simple and there is no reference inside of it. So the error comes from another schema trying to reference this schema.

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "title": "IndicatorType",
  "description": "Boolean value, typically used to represent an indicator style attribute",
  "type": "boolean"
}

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