{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oracle-database/json-schema/oracle-database-models-collection-schema.json",
  "title": "ModelsCollection",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/oracle-database-vector-database-models-api-openapi.yml#/components/schemas/ModelsCollection",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ModelItemWithLinks"
      }
    },
    "hasMore": {
      "type": "boolean"
    },
    "limit": {
      "type": "number"
    },
    "offset": {
      "type": "number"
    },
    "count": {
      "type": "number"
    },
    "links": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/LinkRelation"
      }
    }
  },
  "$defs": {
    "LinkRelation": {
      "type": "object",
      "properties": {
        "rel": {
          "type": "string"
        },
        "href": {
          "type": "string"
        }
      },
      "required": [
        "rel",
        "href"
      ]
    },
    "ModelAttributeItem": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "value": {
          "type": "string"
        },
        "data_type": {
          "type": "string"
        },
        "data_length": {
          "type": "number"
        },
        "vector_info": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "ModelItem": {
      "type": "object",
      "properties": {
        "model_name": {
          "type": "string"
        },
        "algorithm": {
          "type": "string"
        },
        "mining_function": {
          "type": "string"
        },
        "creation_date": {
          "type": "string"
        },
        "attributes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ModelAttributeItem"
          }
        }
      }
    },
    "ModelItemWithLinks": {
      "allOf": [
        {
          "$ref": "#/$defs/ModelItem"
        },
        {
          "type": "object",
          "properties": {
            "links": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/LinkRelation"
              }
            }
          }
        }
      ]
    }
  }
}