vira - v31.18.2
    Preparing search index...

    Function validateAgainstSchema

    • Validates a JSON value against the (loose) JSON Schema subset supported by ViraJsonForm. Returns a list of human-readable error messages; an empty array means the value is valid. Only the constraints understood by the editor (type, required, properties, additionalProperties = false, items, enum, const, anyOf, oneOf, $ref) are checked.

      Parameters

      • value: JsonValue
      • schema: JSONSchema | undefined

      Returns readonly string[]