Skip to content

Improve lint output when attempting to process something that is not a schema #350

Closed
@jviotti

Description

@jviotti

This is what we get so far:

jsonschema lint schema.json
error: Could not determine the base dialect of the schema

Which is very non descriptive. We should also hint at the bottom at something like "Are you sure the input is a valid JSON Schema and its dialect is known?" and potentially also hint at --default-dialect/-d

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions