Skip to content

provides validation result for more than SingleIssue? #38

@ghost

Description

Currentely validate(data, schema) only returns SingleIssue, even if there are more than 1 failure.

using JSON, JSONSchema
data = JSON.parse("""{
    "Title": null,
    "Desc": 15
}
""")

schema = JSON.parse("""{
    "properties": {
        "Title": {
            "type": "string"
        },
        "Desc": {
            "type": "string"
        }
    }
}
""")

JSONSchema.validate(data, Schema(schema))

But I'm trying to setup JSONSchema validation on github action with large and complex data. So, it's preferable to present all the issues from the sigle run.

How about adding validateall, which returns Array{SingleIssue, 1} for all the validations?

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