---
title: "GenerationSchema.SchemaError.undefinedReferences(schema:references:context:)"
framework: foundationmodels
role: symbol
role_heading: Case
path: "foundationmodels/generationschema/schemaerror/undefinedreferences(schema:references:context:)"
---

# GenerationSchema.SchemaError.undefinedReferences(schema:references:context:)

An error that represents an attempt to construct a schema from dynamic schemas, and one of those schemas references an undefined schema.

## Declaration

```swift
case undefinedReferences(schema: String?, references: [String], context: GenerationSchema.SchemaError.Context)
```

## 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.Context](foundationmodels/generationschema/schemaerror/context.md)
