Skip to content

Validate if field exists in schema #44

@v1ctor

Description

@v1ctor

Hi!
I would like to add new feature to validate if field exists in schema.

Schema schema = SchemaLoader.load(schemaAsJsonObject);
Assert.assertTrue(schema.hasField('rectangle.a'))

In first glance I think that I have to validate only propertySchemas recursievly and patternProperties.
Could you please point if there are some corner cases of this solution?

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