akashi_gen 0.3.0
akashi_gen: ^0.3.0 copied to clipboard
Optional build_runner codegen for Akashi tool input schemas: emits the same Schema<T> as the runtime builder from annotated classes, so the two are drop-in interchangeable.
Changelog #
0.3.0 #
- Coordinated 0.3.0 release (tracks
akashi0.3.0). No functional changes.
0.2.0 #
Initial release — optional build_runner codegen for tool-input schemas.
@toolInput/@SchemaFieldannotations.- A
source_genbuilder that emits aSchema<T>(named$<camelCaseClassName>Schema) plus a_$<ClassName>FromJsondecoder for each annotated class. The generatedSchema<T>is drop-in interchangeable with the runtimeSchemabuilder. - Supports
String/int/double/bool/Listfields, stringenums and descriptions via@SchemaField; required is inferred from non-nullable fields. - Strictly optional:
akashicore never depends on this package. The example ships a committed.g.dart; regenerate withdart run build_runner build.