{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://forms.takoform.com/schemas/interfaces/v1alpha1/interface-ref.schema.json",
  "title": "Takoform exact InterfaceRef v1alpha1",
  "type": "object",
  "additionalProperties": false,
  "required": ["apiVersion", "name", "version", "schemaDigest"],
  "properties": {
    "apiVersion": {
      "const": "interfaces.takoform.com/v1alpha1"
    },
    "name": {
      "type": "string",
      "maxLength": 128,
      "pattern": "^[a-z][a-z0-9]*(?:\\.[a-z][a-z0-9]*)*$"
    },
    "version": {
      "type": "string",
      "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"
    },
    "schemaDigest": {
      "type": "string",
      "pattern": "^sha256:[0-9a-f]{64}$"
    }
  }
}
