Skip to content

Nested level validation error wrong key, and if then else problem #1375

@esakarya

Description

@esakarya

I am try to validate product data json with Amazon Product Type Definitions schema. but I have two problems.

First One: This is part of footwear_size property, there is 3 attribute are required. size, size_class, size_system.

Image

I check the amazon documents they says ve ara use 2019-09 schema then i use Draft201909Validator for validating. ( also i try another ones.)
First Problem is ValidationError return only base attribute 3 time footwear_size, i cant see size, size_class, size_system attributes.

Second Is: schema says if size_system == eu_footwear_size_system then required age_group. But age_group not appear required errors.
Here is product data json part.

Image

Here is schema if then part.

Image

and i am attaching full schema.

schema.json

Any one can help me ?

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