---
title: GenerationSchema.SchemaError
framework: foundationmodels
role: symbol
role_heading: Enumeration
path: foundationmodels/generationschema/schemaerror
---

# GenerationSchema.SchemaError

A error that occurs when there is a problem creating a generation schema.

## Declaration

```swift
enum SchemaError
```

## Topics

### Getting schema errors

- [GenerationSchema.SchemaError.duplicateProperty(schema:property:context:)](foundationmodels/generationschema/schemaerror/duplicateproperty(schema:property:context:).md)
- [GenerationSchema.SchemaError.duplicateType(schema:type:context:)](foundationmodels/generationschema/schemaerror/duplicatetype(schema:type:context:).md)
- [GenerationSchema.SchemaError.emptyTypeChoices(schema:context:)](foundationmodels/generationschema/schemaerror/emptytypechoices(schema:context:).md)
- [GenerationSchema.SchemaError.undefinedReferences(schema:references:context:)](foundationmodels/generationschema/schemaerror/undefinedreferences(schema:references:context:).md)
- [GenerationSchema.SchemaError.Context](foundationmodels/generationschema/schemaerror/context.md)

### Getting the error description

- [errorDescription](foundationmodels/generationschema/schemaerror/errordescription.md)

### Getting the recovery suggestion

- [recoverySuggestion](foundationmodels/generationschema/schemaerror/recoverysuggestion.md)

## Relationships

### Conforms To

- [Error](swift/error.md)
- [LocalizedError](foundation/localizederror.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
