{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/emporix/json-schema/emporix-reference-creation-schema.json",
  "title": "ReferenceCreation",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/emporix-reference-api-openapi.yml#/components/schemas/ReferenceCreation",
  "allOf": [
    {
      "$ref": "#/$defs/AbstractSchemaRequest"
    },
    {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Identifier of the schema."
        }
      }
    }
  ],
  "$defs": {
    "AbstractSchemaRequest": {
      "type": "object",
      "properties": {
        "name": {
          "type": "object",
          "description": "Localized schema name in a form of a map of translations."
        },
        "types": {
          "type": "array",
          "description": "List of types which schema should be assigned to.",
          "items": {
            "$ref": "#/$defs/SchemaType"
          }
        }
      },
      "required": [
        "name",
        "types"
      ]
    },
    "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"
      ]
    }
  }
}