Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Making property a field? #11

Open
TechOverflow opened this issue Oct 27, 2020 · 1 comment
Open

Making property a field? #11

TechOverflow opened this issue Oct 27, 2020 · 1 comment

Comments

@TechOverflow
Copy link

Is there any way to get the output to be formatted like this with the property as its own field?

[
    {
        "keyword": "required",
        "pointer": "",
        "property": "eventType",
        "message": "The attribute property 'eventType' is required."
    },
    {
        "keyword": "required",
        "pointer": "",
        "property": "timestamp",
        "message": "The attribute property 'timestamp' is required."
    },
]

Currently

[
    {
        "keyword": "required",
        "pointer": "",
        "message": "The attribute property 'eventType' is required."
    },
    {
        "keyword": "required",
        "pointer": "",
        "message": "The attribute property 'timestamp' is required."
    },
]
@m1x0n
Copy link
Owner

m1x0n commented Oct 27, 2020

Hi, @TechOverflow. Since the property could be on some nested level it should be possible to resolve its name from pointer value. It looks like there is a bug in current implementation with empty pointer value.
Could you please provide some data sample for further investigation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants