schemaBuilder function

Builder schemaBuilder(
  1. BuilderOptions options
)

Creates the Builder used by build_runner to generate schemantic data classes and JSON schemas.

The builder emits a shared part file (with the schemantic extension) for every input library, running the schema generator over each @Schema annotated declaration. The options are supplied by build_runner based on the configuration in build.yaml.

Implementation

Builder schemaBuilder(BuilderOptions options) =>
    SharedPartBuilder([SchemaGenerator()], 'schemantic');