JuliaIO / JuliaIO/JSONSchema.jl

provides validation result for more than SingleIssue?

Open
#38 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
40
Forks
12
PR merge metrics
No merged PRs in 30d

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?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the validate(data, schema) entry point and inspect how SingleIssue is produced during schema validation. Determine how all failures can be collected without changing the existing result, then verify that the proposed validateall API returns every issue for the example data and schema.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.