Skip to content

lint should allow any value as input #182

@Stadly

Description

@Stadly

The lint funciton expects a variable of type Schema as input. As I understand it, if the input is already a Schema it is already a valid JSON Schema, and hence does not need any linting. I think the lint function should take an any or unknown as input. This way the function can be used to check wheter or not an arbitrary value is a valid JSON Schema and hence can be cast to Schema.

The way it is now, in order to check whether a value is a valid JSON Schema, I have to first cast it to Schema. It is better to this cast after running lint, when I know that it is safe.

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