Skip to content
Legislation
Esc
navigateopen⌘Jpreview

Legislation · public publication pilot

reading-scope: 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 (5)

VariantFieldRequiredPublished constraints
CommonacceptedDatasetDigestYes
{
  "type": "string",
  "allOf": [
    {
      "pattern": "^[a-f0-9]{64}$"
    }
  ]
}
CommonslugYes
{
  "type": "string"
}
CommonkindYes
{
  "type": "string",
  "enum": [
    "whole",
    "file",
    "container"
  ]
}
CommonpathYes
{
  "type": "string"
}
CommonmembershipYes
{
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "canonicalPath": {
        "type": "string"
      },
      "sha256": {
        "type": "string",
        "allOf": [
          {
            "pattern": "^[a-f0-9]{64}$"
          }
        ]
      }
    },
    "required": [
      "canonicalPath",
      "sha256"
    ],
    "additionalProperties": false
  }
}
Complete JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "acceptedDatasetDigest": {
      "type": "string",
      "allOf": [
        {
          "pattern": "^[a-f0-9]{64}$"
        }
      ]
    },
    "slug": {
      "type": "string"
    },
    "kind": {
      "type": "string",
      "enum": [
        "whole",
        "file",
        "container"
      ]
    },
    "path": {
      "type": "string"
    },
    "membership": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "canonicalPath": {
            "type": "string"
          },
          "sha256": {
            "type": "string",
            "allOf": [
              {
                "pattern": "^[a-f0-9]{64}$"
              }
            ]
          }
        },
        "required": [
          "canonicalPath",
          "sha256"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "acceptedDatasetDigest",
    "slug",
    "kind",
    "path",
    "membership"
  ],
  "additionalProperties": false,
  "$defs": {}
}

a6de85cccf489b7b121dcec0cddf38c459fff4af3f64d1bc4fde69b4753ec0c5