{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/outblocks-database-table/latest.json",
  "title": "JSON schema for Outblocks database table files",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/outblocks/outblocks-cli/master/schema/schema-table.json",
    "sourceSha256": "c878f007264b19ef2acaa7a9b58b0797776324d5d1bddc0e9ea140b3ecf9f262",
    "fileMatch": [
      "**/database/**/*.outblocks.yaml",
      "**/database/**/*.outblocks.yml"
    ],
    "parsers": [
      "yaml"
    ]
  },
  "$defs": {
    "OutblocksTable": {
      "title": "OutblocksTable",
      "type": "object",
      "properties": {
        "fields": {
          "$ref": "#/$defs/Fields"
        }
      },
      "additionalProperties": false
    },
    "Fields": {
      "title": "Fields",
      "type": "object",
      "additionalProperties": true,
      "patternProperties": {
        "^[_a-zA-Z][a-zA-Z0-9_-]*$": {
          "type": "object",
          "properties": {
            "type": {
              "description": "The type of the field.",
              "type": "string"
            },
            "default": {
              "description": "Default value of the field."
            }
          },
          "required": [
            "type"
          ]
        }
      }
    }
  },
  "$ref": "#/$defs/OutblocksTable"
}
