Skip to content

Is it possible to add line number into the Report? #59

Closed
@feiniao0308

Description

@feiniao0308

It's different to locate the error in current Report format as follows for large JSON file. Is it possible to add line number into Report to denote which line is the pointer(schema or instance)?

com.github.fge.jsonschema.report.ListProcessingReport: failure---
BEGIN MESSAGES
---error: instance type does not match any allowed primitive type
level: "error"
schema: {"loadingURI":"#","pointer":"/properties/version"}
instance: {"pointer":"/version"}
domain: "validation"
keyword: "type"
expected: ["integer"]
found: "number"
--- END MESSAGES ---

Thanks,
Hai

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions