<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FoundationModels",
  "identifier" : "/documentation/FoundationModels/GenerationSchema/SchemaError/undefinedReferences(schema:references:context:)",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Foundation Models"
    ],
    "preciseIdentifier" : "s:16FoundationModels16GenerationSchemaV0D5ErrorO19undefinedReferencesyAESSSg_SaySSGAE7ContextVtcAEmF"
  },
  "title" : "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
in which one of those schemas references an undefined schema.

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)