github.com/icyphox/x@v0.0.355-0.20220311094250-029bd783e8b8/decoderx/stub/consent.json (about)

     1  {
     2    "$id": "https://example.com/ory.schema.json",
     3    "$schema": "http://json-schema.org/draft-07/schema#",
     4    "additionalProperties": false,
     5    "properties": {
     6      "traits": {
     7        "additionalProperties": false,
     8        "properties": {
     9          "consent": {
    10            "additionalProperties": false,
    11            "properties": {
    12              "tos": {
    13                "description": "yyyymmdd of when this was accepted",
    14                "title": "I accept the Terms of Service https://www.ory.sh/ptos",
    15                "const": true,
    16                "maxLength": 30
    17              },
    18              "inner": {
    19                "type": "object",
    20                "properties": {
    21                  "foo": {
    22                    "type": "string"
    23                  }
    24                },
    25                "required": [
    26                  "foo"
    27                ]
    28              }
    29            },
    30            "required": [
    31              "tos"
    32            ],
    33            "title": "Consent",
    34            "type": "object"
    35          },
    36          "notrequired": {
    37            "additionalProperties": false,
    38            "properties": {
    39              "tos": {
    40                "description": "yyyymmdd of when this was accepted",
    41                "title": "I accept the Terms of Service https://www.ory.sh/ptos",
    42                "const": true,
    43                "maxLength": 30
    44              }
    45            },
    46            "required": [
    47              "tos"
    48            ],
    49            "title": "Consent",
    50            "type": "object"
    51          }
    52        },
    53        "required": [
    54          "consent"
    55        ],
    56        "type": "object"
    57      }
    58    },
    59    "title": "Person",
    60    "type": "object"
    61  }