# InputsDialogValidationContext

- Module: [Aspire.Hosting](/reference/api/go/aspire.hosting.md)
- Version: `17.0.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)

Represents the context for validating inputs in an inputs dialog interaction.

## Definition

```go
type InputsDialogValidationContext interface{}
```

## Properties

- `CancellationToken`: `*CancellationToken` `get` -- Gets the cancellation token for the validation operation.
- `Inputs`: [`InteractionInputCollection`](/reference/api/go/aspire.hosting/interactioninputcollection.md) `get` -- Gets the inputs that are being validated.
- `Services`: [`ServiceProvider`](/reference/api/go/aspire.hosting/serviceprovider.md) `get` -- Gets the service provider for resolving services during validation.

## Methods

- [AddValidationError](/reference/api/go/aspire.hosting/inputsdialogvalidationcontext/addvalidationerror.md) -- `method` -- Adds a validation error for the input with the specified name.
  ```go
  AddValidationError(inputName string, errorMessage string) error
  ```
