---
title: GenerationSchema.SchemaError.Context
framework: foundationmodels
role: symbol
role_heading: Structure
path: foundationmodels/generationschema/schemaerror/context
---

# GenerationSchema.SchemaError.Context

The context in which the error occurred.

## Declaration

```swift
struct Context
```

## Topics

### Creating a schema error context

- [init(debugDescription:)](foundationmodels/generationschema/schemaerror/context/init(debugdescription:).md)

### Getting the debug description

- [debugDescription](foundationmodels/generationschema/schemaerror/context/debugdescription.md)

## Relationships

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### 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)
