> ## Documentation Index
> Fetch the complete documentation index at: https://omss.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# validateSafeUniqueString

```typescript
validateSafeUniqueString(value: string, name: string, ErrorType: ErrorConstructor<T>): Result<void, T>
```

Validate a string is safe for use as a unique identifier (only lowercase letters, numbers, and hyphens).

## Parameters

<ResponseField name={"value"} type={"string"} required>
  The string to validate
</ResponseField>

<ResponseField name={"name"} type={"string"} required>
  The name of the identifier, for error messages
</ResponseField>

<ResponseField name={"ErrorType"} type={"ErrorConstructor<T>"} required>
  The error type to return if validation fails
</ResponseField>

## Returns

`Result<void, T>`


## Related topics

- [SAFE_UNIQUE_STRING](/sdk-artifacts/variables/SAFE_UNIQUE_STRING.md)
- [OMSS v1.1 Specification](/spec/latest/ref/spec.md)
- [Backend home and capabilities](/spec/v1.0/ref/health/home-endpoint.md)
