Skip to content

JSON schema policy operator for JSON object metadata parameter #209

@Razumain

Description

@Razumain

In the workshop in Stockholm we discussed this policy operator that gained a majority of the votes supporting inclusion.

This policy operator allows expression of an array of JSON schemas as the policy operator value.

The operator value match the metadata parameter if, and only if:

  • The metadata parameter is a JSON object
  • The metadata parameter value matches all present JSON schemas in the policy operator.

This policy operator is merged to the union of all JSON schemas of the merged policy operators.

Rationale:
Some metadata structures (in particular in the Wallet environment) use JSON objects as metadata parameters. These JSON objects can have a quite complex structure. A JSON schema offers a comprehensive but standardized way to express requirements on the content. Verification of the metadata parameter value against a schema is easy with publicly available JSON libraries. This makes support of this policy operator very easy to implement.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions