Skip to content

The SchemaPath of allOf type validation message is wrong? #664

@htdan

Description

@htdan

Just an simple example, when validate empty json with the following schema.

{ "type": "object", "properties": { "name": { "type": "string" } }, "allOf": [ { "required": [ "name" ] } ] }

In the validation message returned, we have the schemaPath "allOf/required". Should it be "#/allOf/0/required".

It seems when generating validation message behind allOf, the schemaPath is always partial and starts from allOf keyword only.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions