# ValidationResult

- [JSON representation](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/ValidationResult#SCHEMA_REPRESENTATION)
- [ValidationError](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/ValidationResult#ValidationError)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/ValidationResult#ValidationError.SCHEMA_REPRESENTATION)
- [Severity](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/ValidationResult#Severity)

Represents the output of agent validation.

| JSON representation |
|---|
| ``` { "validationErrors": [ { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/ValidationResult#ValidationError`) } ] } ``` |

| Fields ||
|---|---|
| `validationErrors[]` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/ValidationResult#ValidationError`)`` Contains all validation errors. |

## ValidationError

Represents a single validation error.

| JSON representation |
|---|
| ``` { "severity": enum (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/ValidationResult#Severity`), "entries": [ string ], "errorMessage": string } ``` |

| Fields ||
|---|---|
| `severity` | ``enum (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/ValidationResult#Severity`)`` The severity of the error. |
| `entries[]` | `string` The names of the entries that the error is associated with. Format: - `projects/<Project ID>/agent`, if the error is associated with the entire agent. - `projects/<Project ID>/agent/intents/<Intent ID>`, if the error is associated with certain intents. - `projects/<Project ID>/agent/intents/<Intent Id>/trainingPhrases/<Training Phrase ID>`, if the error is associated with certain intent training phrases. - `projects/<Project ID>/agent/intents/<Intent Id>/parameters/<Parameter ID>`, if the error is associated with certain intent parameters. - `projects/<Project ID>/agent/entities/<Entity ID>`, if the error is associated with certain entities. |
| `errorMessage` | `string` The detailed error message. |

## Severity

Represents a level of severity.

| Enums ||
|---|---|
| `SEVERITY_UNSPECIFIED` | Not specified. This value should never be used. |
| `INFO` | The agent doesn't follow Dialogflow best practices. |
| `WARNING` | The agent may not behave as expected. |
| `ERROR` | The agent may experience partial failures. |
| `CRITICAL` | The agent may completely fail. |