Skip to content

Validation for interdependent properties #10

Open
@manoj-pillay-10gen

Description

@manoj-pillay-10gen

An example of very commonly seen business logic for property value validation is based on dependencies of one property on another. For example, here is the definition for an edgeGram tokenizer

      "tokenizer": {
        "type": "edgeGram",
        "minGram": 5,
        "maxGram": 10
      }

An expectation is that minGram <= maxGram. However, this rule is currently not possible to install directly using the schema, because there is no way to do this in JSON schema specification

We will need to install this rule during the validation phase (no squiggly red lines) of the index before it gets submitted to mongot unless we resort to dynamic injection (doesn't sound worthwhile for this).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions