{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "title": "upsert_localization_source_entity_command",
  "description": "Upsert localization source entity command schema.",
  "additionalProperties": false,
  "required": [
    "service_id",
    "entity_type",
    "entity_id",
    "fields"
  ],
  "properties": {
    "service_id": {
      "type": "string",
      "minLength": 1,
      "pattern": "^$|.*\\S.*",
      "description": "The string has a minimum length of one character and it cannot consist of only whitespace characters."
    },
    "entity_type": {
      "type": "string",
      "minLength": 1,
      "pattern": "^$|.*\\S.*",
      "description": "The string has a minimum length of one character and it cannot consist of only whitespace characters."
    },
    "entity_id": {
      "type": "string",
      "minLength": 1,
      "pattern": "^$|.*\\S.*",
      "description": "The string has a minimum length of one character and it cannot consist of only whitespace characters."
    },
    "entity_title": {
      "type": "string",
      "description": "An optional title of the localization source entity."
    },
    "image_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "An optional Id of the related image. If null is passed - image will be unassigned. If undefined is passed - image will not be updated."
    },
    "fields": {
      "type": "object",
      "title": "upsert_localization_source_entity_fields",
      "description": "Fields that would be added or updated for the localization source entity."
    }
  }
}