Skip to content

General expressions support and cross-field validations #541

Closed
@brunodymios

Description

@brunodymios

What about having a requirement saying that field A must be always equal to field B divided by field C?
Consider the case in which we are managing financial data and we need this information to both show in a form the auto-computed value and validate/recompute this value server-side.

Having this kind of possibility directly in the Json Schema (even through the support for referencing other fields in properties like "minimum" or "multipleOf") could be extremely useful and makes Json Schema even more complete in my opinion.
Such a feature will enable for creating both server-side and client-side validations by only relying on the Json Schema describing the data.

Is this currently being addressed somehow?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Closed

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions