Skip to content

Add support for updated condtionals #34

@doneill

Description

@doneill

EarthRanger event form editor v2 schema conditionals introduces richer schemas that handle array/object/string field types within a single anyOf, plus multi-value support and four new operators.

Key Architectural Difference: Root vs. Field Scope

Most operators are field-scoped — their schema is applied to scope: "#/properties/fieldName". IS_EMPTY is root-scoped because it must check for field absence (not: { required: [fieldName] }), which is a property of the parent object, not the field value itself.

This requires updating buildConditionSchema and buildSchemaBasedCondition to route IS_EMPTY to root scope

Action:

  • Update the conditional support in the library to meet the new conditional specifications and operators

Expectation:

  • Conditional fields in EarthRanger v2 schemas are fully supported in client apps

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