{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/certifyos/main/json-schema/certifyos-udf-schema-response-schema.json",
  "title": "UdfSchemaResponse",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/certifyos-udf-schema-api-openapi.yml#/components/schemas/UdfSchemaResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "tenantId": {
      "type": "string"
    },
    "entityType": {
      "$ref": "#/$defs/EntityType"
    },
    "schema": {
      "$ref": "#/$defs/JsonNode"
    },
    "version": {
      "type": "integer",
      "format": "int32"
    },
    "createdAt": {
      "$ref": "#/$defs/Date"
    },
    "createdBy": {
      "type": "string"
    },
    "updatedAt": {
      "$ref": "#/$defs/Date"
    },
    "updatedBy": {
      "type": "string"
    }
  },
  "$defs": {
    "Date": {
      "type": "string",
      "format": "date"
    },
    "EntityType": {
      "type": "string",
      "enum": [
        "practitioner",
        "facility",
        "location",
        "group",
        "group_location",
        "group_practitioner_location",
        "tenant_group",
        "tenant_group_practitioners",
        "tenant_facility_location",
        "tenant_group_facility",
        "tenant_group_facility_location",
        "tenant_group_practitioner_network",
        "tenant_group_location_practitioner_network",
        "tenant_group_location",
        "tenant_group_network",
        "tenant_group_facility_network",
        "tenant_group_location_facility_network"
      ]
    },
    "JsonNode": {
      "type": "object",
      "properties": {
        "empty": {
          "type": "boolean"
        },
        "valueNode": {
          "type": "boolean"
        },
        "containerNode": {
          "type": "boolean"
        },
        "missingNode": {
          "type": "boolean"
        },
        "array": {
          "type": "boolean"
        },
        "object": {
          "type": "boolean"
        },
        "nodeType": {
          "$ref": "#/$defs/JsonNodeType"
        },
        "pojo": {
          "type": "boolean"
        },
        "number": {
          "type": "boolean"
        },
        "integralNumber": {
          "type": "boolean"
        },
        "floatingPointNumber": {
          "type": "boolean"
        },
        "short": {
          "type": "boolean"
        },
        "int": {
          "type": "boolean"
        },
        "long": {
          "type": "boolean"
        },
        "float": {
          "type": "boolean"
        },
        "double": {
          "type": "boolean"
        },
        "bigDecimal": {
          "type": "boolean"
        },
        "bigInteger": {
          "type": "boolean"
        },
        "textual": {
          "type": "boolean"
        },
        "boolean": {
          "type": "boolean"
        },
        "null": {
          "type": "boolean"
        },
        "binary": {
          "type": "boolean"
        }
      }
    },
    "JsonNodeType": {
      "type": "string",
      "enum": [
        "ARRAY",
        "BINARY",
        "BOOLEAN",
        "MISSING",
        "NULL",
        "NUMBER",
        "OBJECT",
        "POJO",
        "STRING"
      ]
    }
  }
}