{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Hay registry discovery",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "schemaVersion",
    "name",
    "catalog"
  ],
  "properties": {
    "schemaVersion": {
      "const": "hay.registry.discovery/1"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "catalog": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2048
    },
    "release": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2048,
      "description": "Same-origin path template with exactly one {id} and one {version} placeholder."
    }
  }
}
