Skip to content

Commit f605c8b

Browse files
authored
Update README.md
1 parent 41a6892 commit f605c8b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ string toon3 = Cysharp.AI.Converters.UserTabularArrayConverter.EncodeAsTabularAr
6262
// If data can be uniform array, generate converter for better performance
6363
[GenerateToonTabularArrayConverter]
6464
public record User(int Id, string Name, string Role);
65+
66+
// Note: when using Source Generator, you need to allow unsafe comple.
67+
// <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
6568
```
6669

6770
The Source Generator also supports generation for flat objects (primitives, arrays of primitive elements, and arrays of objects consisting only of primitive elements). `[GenerateToonSimpleObjectConverter]` handles scenarios like TabularArray + additional metadata.

0 commit comments

Comments
 (0)