{
  "id": "localized-string.schema.json",

  "type": "object",
  "oneOf": [
    {
      "required": ["default"]
    },
    {
      "required": ["id"]
    }
  ],
  "properties": {
    "default": {
      "title": "Default string",
      "description": "String to be used if a locale doesn't exist",
      "type": "string",
      "minLength": 1
    },
    "id": {
      "title": "Id for the localized string",
      "description": "Id for the localized string in the form '$<moduleName>:<expression>;'",
      "type": "string",
      "minLength": 1,
      "pattern": "^\\$[^:]+:.+;$"
    }
  },
  "additionalProperties": {
    "title": "Localized string",
    "type": "string",
    "minLength": 1
  }
}
