{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/miro/json-schema/miro-schema-resource-schema.json",
  "title": "SchemaResource",
  "description": "Information on how users, groups, and enterprise-user attributes are formatted.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/miro-discovery-api-openapi.yml#/components/schemas/SchemaResource",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Identifier of the schema resource."
    },
    "name": {
      "type": "string",
      "description": "Name of the schema resource."
    },
    "description": {
      "type": "string",
      "description": "Description of the schema resource."
    },
    "attributes": {
      "type": "array",
      "description": "Attributes that are currently supported.",
      "items": {
        "$ref": "#/$defs/SchemaAttribute"
      }
    },
    "meta": {
      "type": "object",
      "description": "Metadata about the schema resource.",
      "properties": {
        "resourceType": {
          "type": "string",
          "description": "Type of the resource."
        },
        "location": {
          "type": "string",
          "description": "The URI of the resource."
        }
      }
    }
  },
  "$defs": {
    "SchemaAttribute": {
      "type": "object",
      "properties": {
        "schemas": {
          "type": "array",
          "description": "Identifies which schema(s) this resource used. In this case it is the SCIM core User/Group schema.",
          "items": {
            "type": "string",
            "enum": [
              "urn:ietf:params:scim:schemas:core:2.0:User"
            ]
          }
        },
        "name": {
          "type": "string",
          "description": "Name of schema attribute."
        },
        "type": {
          "type": "string",
          "description": "Type of schema attribute."
        },
        "multiValued": {
          "type": "boolean",
          "description": "Indicates whether the attribute is multi-valued."
        },
        "description": {
          "type": "string",
          "description": "Description of schema attribute."
        },
        "required": {
          "type": "boolean",
          "description": "Indicates whether the attribute is required."
        },
        "subAttributes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/SchemaAttribute"
          }
        },
        "caseExact": {
          "type": "boolean",
          "description": "Indicates whether the attribute is case exact."
        },
        "mutability": {
          "type": "string",
          "description": "Indicates the mutability of the attribute."
        },
        "returned": {
          "type": "string",
          "description": "Indicates when the attribute is returned in a response."
        },
        "uniqueness": {
          "type": "string",
          "description": "Indicates the uniqueness of the attribute."
        }
      },
      "description": "Definition of schema attributes."
    }
  }
}