FlatSharp uses standard FlatBuffer IDL (Interface Definition Language). To enable FlatSharp-specific features like automatic serializer generation, use attributes prefixed with fs_.
Example schema defining a Person table with a fs_serializer attribute:
// all FlatSharp FBS attributes start with the 'fs_' prefix.
attribute "fs_serializer";
namespace MyNamespace;
enum Color : ubyte { Red = 1, Green, Blue }
table Person (fs_serializer) {
id : int;
name : string;
parent : Person (deprecated);
children : [ Person ];
favorite_color : Color = Blue;
position : Location;
}
struct Location {
latitude : float;
longitude : float;
}