{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/emporix/json-schema/emporix-references-response-schema.json",
  "title": "ReferencesResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/emporix-reference-api-openapi.yml#/components/schemas/ReferencesResponse",
  "type": "array",
  "items": {
    "$ref": "#/$defs/ReferenceResponse"
  },
  "$defs": {
    "AbstractSchemaResponse": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Identifier of the schema."
        },
        "name": {
          "type": "object",
          "description": "Localized schema name in a form of a map of translations."
        },
        "types": {
          "type": "array",
          "description": "List of types to which schema should be assigned.",
          "items": {
            "$ref": "#/$defs/SchemaType"
          }
        },
        "metadata": {
          "allOf": [
            {
              "$ref": "#/$defs/SchemaMetadata"
            }
          ]
        }
      }
    },
    "ReferenceResponse": {
      "allOf": [
        {
          "$ref": "#/$defs/AbstractSchemaResponse"
        }
      ]
    },
    "SchemaMetadata": {
      "allOf": [
        {
          "$ref": "#/$defs/SchemaMetadataUpdate"
        },
        {
          "type": "object",
          "description": "Metadata of schema.",
          "properties": {
            "url": {
              "type": "string",
              "description": "Schema url of the attributes."
            },
            "createdAt": {
              "type": "string",
              "description": "Date and time when the object was created, compliant with the ISO 8601 standard. For example: `2022-03-31T09:52:15.423Z`"
            },
            "modifiedAt": {
              "type": "string",
              "description": "Date and time when the object was last modified, compliant with the ISO 8601 standard. For example: `2022-03-31T09:52:15.423Z`"
            }
          }
        }
      ]
    },
    "SchemaMetadataUpdate": {
      "type": "object",
      "properties": {
        "version": {
          "type": "number",
          "description": "Version of the object. The value is required during update operation."
        }
      }
    },
    "SchemaType": {
      "type": "string",
      "description": "Type which the schema should be assigned to. Can be one of the predefined values or any custom schema type id.",
      "enum": [
        "AVAILABILITY",
        "CART",
        "CART_ITEM",
        "CATEGORY",
        "COMPANY",
        "COUPON",
        "CUSTOMER",
        "CUSTOMER_ADDRESS",
        "LOCATION",
        "ORDER",
        "ORDER_ENTRY",
        "PRODUCT",
        "QUOTE",
        "RETURN",
        "PRICE_LIST",
        "SITE",
        "CUSTOM_ENTITY",
        "VENDOR",
        "VENDOR_LOCATION",
        "MEDIA"
      ]
    }
  }
}