ack_generator library

Classes

AckJsonSchemaDiagnostic
One reason a JSON Schema document cannot generate Ack models.
AckJsonSchemaLibrary
A generated Dart library and the document it was checked against.
AckJsonSchemaLibraryOptions
Options for generateAckSchemaLibrary.

Enums

AckJsonSchemaModelMode
Whether to prefer typed fields or exact source-schema value wrappers.
AckUnknownPropertiesMode
How generated models treat properties a JSON Schema object doesn't declare.

Functions

ackGenerator(BuilderOptions options) → Builder
Creates the shared .g.dart part builder for @Schemable models.
ackJsonSchemaBuilder(BuilderOptions options) → Builder
Creates the opt-in builder that generates @Schemable schema declarations from *.schema.json JSON Schema bundles.
generateAckSchemaLibrary({required Object? document, required Uri documentUri, required String partStem, AckJsonSchemaLibraryOptions options = const AckJsonSchemaLibraryOptions(), Map<Uri, Object> documents = const {}, bool includeParts = true, Version? languageVersion}) → AckJsonSchemaLibrary
Generates typed Ack models or validated value models from a draft 2020-12 document.

Exceptions / Errors

AckJsonSchemaGenerationException
Exception thrown when a JSON Schema document cannot generate Ack models.