Skip to content
Legislation
Esc
navigateopen⌘Jpreview

Legislation · public publication pilot

source-summary: schema and stability

Generated reference for this publication’s exact JSON Schema sidecar. Field constraints below come directly from the sidecar; JSON Schema does not reproduce every Effect refinement.

Fields (1)

VariantFieldRequiredPublished constraints
Common(schema constraint)No
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "slug": {
        "type": "string"
      },
      "titleId": {
        "type": "string"
      },
      "registerId": {
        "type": "string"
      },
      "versionDate": {
        "type": "string"
      },
      "sourceObservation": {
        "type": "object",
        "properties": {
          "checkedAt": {
            "type": "string",
            "allOf": [
              {
                "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|[+-]\\d{2}:\\d{2})$"
              }
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "attested"
            ]
          }
        },
        "required": [
          "checkedAt",
          "status"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "slug",
      "titleId",
      "registerId",
      "versionDate",
      "sourceObservation"
    ],
    "additionalProperties": false
  },
  "$defs": {}
}
Complete JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "slug": {
        "type": "string"
      },
      "titleId": {
        "type": "string"
      },
      "registerId": {
        "type": "string"
      },
      "versionDate": {
        "type": "string"
      },
      "sourceObservation": {
        "type": "object",
        "properties": {
          "checkedAt": {
            "type": "string",
            "allOf": [
              {
                "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|[+-]\\d{2}:\\d{2})$"
              }
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "attested"
            ]
          }
        },
        "required": [
          "checkedAt",
          "status"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "slug",
      "titleId",
      "registerId",
      "versionDate",
      "sourceObservation"
    ],
    "additionalProperties": false
  },
  "$defs": {}
}

a6de85cccf489b7b121dcec0cddf38c459fff4af3f64d1bc4fde69b4753ec0c5