---
title: "Generable(name:description:representNilExplicitlyInGeneratedContent:)"
framework: foundationmodels
role: symbol
role_heading: Macro
path: "foundationmodels/generable(name:description:representnilexplicitlyingeneratedcontent:)"
---

# Generable(name:description:representNilExplicitlyInGeneratedContent:)

Conforms a type to Generable protocol, using a custom name for the schema instead of the Swift type name.

## Declaration

```swift
@attached(extension, conformances: Generable, names: named(init(_:)), named(generatedContent)) @attached(member, names: arbitrary) macro Generable(name: String, description: String? = nil, representNilExplicitlyInGeneratedContent: Bool = false)
```

## See Also

### Creating a Generable type

- [Generable(description:)](foundationmodels/generable(description:).md)
- [Generable(description:representNilExplicitlyInGeneratedContent:)](foundationmodels/generable(description:representnilexplicitlyingeneratedcontent:).md)
