PackageTrack
Sign in Get early access

schemantic

A lightweight library for type-safe data classes and runtime JSON Schemas, with built-in serialization and validation.

0.2.2 22K downloads/mo #2102 most downloaded on pub.dev genkit-ai/genkit-dart

What this package is like to depend on

Last release 1 months ago

17 Jul 2026

Ships fairly regularly

a new release about every 3 weeks

Nearly every release is documented

notes for 7 of 7 stable releases

Nothing withdrawn

no release was ever pulled

7 months old

25 releases · first in 2026

25 releases in the last 12 months

see the full history below

Release timeline

25 releases · Jan 2026 to Jul 2026
Release Pre-release

Releases

latest 25
  1. 0.2.2 17 Jul 2026
    Release notes

    Release schemantic-v0.2.2

    Open source →
    Release notes

    Fixes

    • normalize nested models to JSON in generated setters (#337)
    Open source →
  2. 0.2.1 17 Jul 2026
    Release notes

    Release schemantic-v0.2.1

    Open source →
    Release notes

    Features

    • add serialize to convert typed values to JSON (#332)
    Open source →
  3. 0.2.0 04 Jun 2026
    Release notes
    • BREAKING REFACTOR: moved vertexAI plugin from genkit_google_genai into genkit_vertexai package (#202).
    Open source →
    Release notes

    Fixes

    • correctly escape '$ref' in allOf case (#291)

    Other Changes

    • update model references to gemini-flash-latest (#293)
    • split schemantic into runtime and schemantic_builder packages (#292)
    Open source →
  4. 0.2.0-rc.0 03 Jun 2026 pre-release

    Nothing published for this version

  5. 0.1.3 06 May 2026
    Release notes

    Features

    • widen analyzer dependency range to include v13 (#277)
    • generate docs for generated schemantic types (#274)
    Open source →
  6. 0.1.2 29 Apr 2026
    Release notes

    Features

    • add additionalProperties support to @Schema and implement strict object validation (#251)

    Fixes

    • support the latest pkg:analyzer in pkg:schemantic (#236)

    Other Changes

    • Add tests for SchemanticType.from's ad-hoc schema parsing and custom type integration. (#224)
    Open source →
  7. 0.1.1 19 Mar 2026
    Release notes

    Features

    • added support for bring-your-own-type and schema with schemantic (#223)

    Fixes

    • correctly handle enums in the generated constructor (#220)
    Open source →
  8. 0.1.0 04 Mar 2026
    Release notes

    2026-03-04

    Changes


    Packages with breaking changes:

    • There are no breaking changes in this release.

    Packages with other changes:

    Packages with dependency updates only:

    Packages listed below depend on other packages in this workspace that have had changes. Their versions have been incremented to bump the minimum dependency versions of the packages they depend upon in this project.

    • genkit_mcp - v0.1.0-dev.1
    • genkit_google_genai - v0.1.0-dev.1
    • genkit_vertex_auth - v0.1.0-dev.1
    • genkit_openai - v0.1.0-dev.1
    • genkit_anthropic - v0.1.0-dev.1
    • genkit_shelf - v0.1.0-dev.1
    • genkit_chrome - v0.0.1-dev.10
    • genkit_middleware - v0.1.0-dev.1

    Open source →
    Release notes
    • Graduate package to a stable release. See pre-releases prior to this version for changelog entries.
    Open source →
  9. 0.1.0-dev.0 04 Mar 2026 pre-release
    Release notes
    • base version change
    Open source →
  10. 0.0.1-dev.19 03 Mar 2026 pre-release
    Release notes
    • FIX: conditionally add toolUsePromptTokenCount to custom metadata.

    2026-03-02

    Changes


    Packages with breaking changes:

    Packages with other changes:

    Packages with dependency updates only:

    Packages listed below depend on other packages in this workspace that have had changes. Their versions have been incremented to bump the minimum dependency versions of the packages they depend upon in this project.

    • genkit_chrome - v0.0.1-dev.9

    Open source →
    Release notes

    Note: This release has breaking changes.

    • REFACTOR: Tweak RegExps and avoid non-linear complexity (#175).
    • REFACTOR: make all classes final or base (#179).
    • FEAT: introduce Genkit evaluation functionality (#191).
    • BREAKING REFACTOR: Remove SchemaHelpers utility class (#180).
    • BREAKING REFACTOR: renamed @Schematic() to @Schema() (#192).
    Open source →
  11. 0.0.1-dev.18 27 Feb 2026 pre-release
    Release notes
    • REFACTOR: migrate Vertex AI authentication to use the genkit_vertex_auth (#193).
    • REFACTOR(google_genai): switch to rest api (#183).
    • REFACTOR: make all classes final or base (#179).
    • FEAT(genkit_google_genai): implemented vertexai support (#184).
    • BREAKING REFACTOR: renamed @Schematic() to @Schema() (#192).
    • BREAKING FEAT: introduced dynamic action provider and migrated MCP plugin to use DAP (#187).
    Open source →
    Release notes

    Note: This release has breaking changes.

    • REFACTOR: hide package:json_schema_builder (#167).
    • REFACTOR: Internal Dart style tweaks (#156).
    • FIX: make static helper classes abstract final (#173).
    • FIX: enable and fix a couple of lints (#174).
    • FIX: be consistent with String quotes (#164).
    • BREAKING FEAT: move basic type functions to static creation method on SchemanticType (#154).
    Open source →
  12. 0.0.1-dev.16 19 Feb 2026 pre-release
    Release notes
    • REFACTOR: Introduce a dedicated plugin.dart entry point for plugin-related exports (#149).
    • REFACTOR: remove GoogleSearchRetrieval option (deprecated) (#147).
    Open source →
    Release notes
    • FIX: correct string interpolation in FormatException messages.
    • FEAT: implemented/fixed tools calling and structured output for firebase_ai (#138).
    Open source →
  13. 0.0.1-dev.15 17 Feb 2026 pre-release
    Release notes
    • FEAT: Add remote model support and enable serving actions via shelf (#143).

    2026-02-18

    Changes


    Packages with breaking changes:

    • There are no breaking changes in this release.

    Packages with other changes:

    Packages with dependency updates only:

    Packages listed below depend on other packages in this workspace that have had changes. Their versions have been incremented to bump the minimum dependency versions of the packages they depend upon in this project.

    • genkit_mcp - v0.0.1-dev.3
    • genkit_chrome - v0.0.1-dev.5
    • genkit_middleware - v0.0.1-dev.3

    Open source →
    Release notes
    • FEAT: implemented interrupt restart (#124).
    Open source →
  14. 0.0.1-dev.14 12 Feb 2026 pre-release
    Release notes
    • REFACTOR: automate telemetry exporter configuration (#131).
    • DOCS: added skills (#132).
    Open source →
    Release notes
    • FEAT: Added nullable that makes any schema nullable (#93).
    Open source →
  15. 0.0.1-dev.13 05 Feb 2026 pre-release
    Release notes
    • REFACTOR: remove detailed token usage arrays from usage metadata and add tests for usage extraction. (#127).
    • FEAT: Implemented real-time tracing (#128).
    • BREAKING REFACTOR: generate api cleanup (#125).
    Open source →
    Release notes
    • FIX: Coerce num values to double for generated double fields during JSON parsing. (#65).
    • FEAT: Add $GenerateResponse type, refine schema types, and update generated class constructors to use late final and regular constructors. (#66).
    Open source →
  16. 0.0.1-dev.12 30 Jan 2026 pre-release
    Release notes
    • FEAT: added support for embedders (embedding models) (#88).
    Open source →
    Release notes
    • REFACTOR: Identify schema types using a new Type.isSchema getter instead of string-based checks.
    • FEAT: updated AnyOf support for union types in Schemantic, including helper class generation and schema type handling. (#62).
    Open source →
  17. 0.0.1-dev.11 30 Jan 2026 pre-release
    Release notes
    • FIX: Coerce num values to double for generated double fields during JSON parsing. (#65).
    • FEAT: add Google Search and multi-speaker voice config support, extract usage metadata, and introduce reasoning parts (#82).
    • FEAT: Add $GenerateResponse type, refine schema types, and update generated class constructors to use late final and regular constructors. (#66).
    • FEAT: added schemas for gemini models, made sure TTS and nano banana models are working (#63).
    • BREAKING REFACTOR: update GenkitException to use a StatusCodes enum instead of raw integer status codes. (#68).
    Open source →
    Release notes

    Note: This release has breaking changes.

    • REFACTOR: reimplement schema generation from extension types to classes, enhance PartExtension getters, and simplify GenerateResponse and tool invocation. (#53).
    • FEAT: Add support for specifying default values for schema fields and types, and generate them in the JSON Schema. (#61).
    • FEAT: AnyOf support and simplified license headers (#59).
    • FEAT: use combining builder and header option (#52).
    • FEAT: allow referencing other schemas when using Schema schematic (#46).
    • BREAKING REFACTOR: removed support for generation from jsb Schema defs (#48).
    • BREAKING FEAT: implement Schemantic API redesign with $ prefixed schema definitions and static $schema for unified schema access. (#60).
    Open source →
  18. 0.0.1-dev.9 19 Jan 2026 pre-release
    Release notes
    • REFACTOR: make all classes final or base (#179).
    • FEAT(openai): add Vertex support with shared Vertex auth utilities (#185).
    • FEAT(anthropic): add Vertex AI transport and sample app (#182).
    • BREAKING REFACTOR: renamed @Schematic() to @Schema() (#192).
    Open source →
    Release notes

    Note: This release has breaking changes.

    • FEAT: Enable schema generation from final Schema variables (#45).
    • BREAKING REFACTOR: renamed JsonExtensionType to SchemanticType (#44).
    Open source →
  19. 0.0.1-dev.8 18 Jan 2026 pre-release
    Release notes
    • REFACTOR: hide package:json_schema_builder (#167).
    • FIX: do not default instructions for json format (should use native constrained generation) (#176).
    • FIX: fix strict casts (#165).
    • BREAKING FEAT: move basic type functions to static creation method on SchemanticType (#154).
    Open source →
  20. 0.0.1-dev.7 16 Jan 2026 pre-release
    Release notes
    • REFACTOR: Tweak RegExps and avoid non-linear complexity (#175).
    • REFACTOR: make all classes final or base (#179).
    • REFACTOR: centralize status-to-http mapping for transport errors (#181).
    • BREAKING REFACTOR: renamed @Schematic() to @Schema() (#192).
    • BREAKING FEAT: introduced dynamic action provider and migrated MCP plugin to use DAP (#187).
    Open source →
    Release notes

    Note: This release has breaking changes.

    • BREAKING FEAT: Refactor basic types into factory functions to support schema constraints (#34).
    Open source →
  21. 0.0.1-dev.6 16 Jan 2026 pre-release
    Release notes
    • REFACTOR: hide package:json_schema_builder (#167).
    • FIX: enable and fix a couple of lints (#174).
    • FIX: fix strict casts (#165).
    • FIX: better generics (#153).
    • FIX: fix a couple of dartdoc issues (#151).
    • BREAKING FEAT: move basic type functions to static creation method on SchemanticType (#154).
    Open source →
    Release notes

    Note: This release has breaking changes.

    • REFACTOR: move the package-specific schema generator into a peer package (#31).
    • FEAT: Add specialized StringField, IntegerField, and NumberField annotations for detailed JSON schema constraint generation with type validation. (#32).
    • DOCS: add dynamic list and map type demonstrations.
    • BREAKING REFACTOR: renamed @Key annotation to @Field (#30).
    Open source →
  22. 0.0.1-dev.5 16 Jan 2026 pre-release
    Release notes
    • REFACTOR: Introduce a dedicated plugin.dart entry point for plugin-related exports (#149).
    Open source →
    Release notes
    • REFACTOR: make generated JsonExtensionType factory classes (*TypeFactory) private (#29).
    • FEAT: added support for defining listType and mapType in schemantic (#28).
    Open source →
  23. 0.0.1-dev.4 16 Jan 2026 pre-release
    Release notes
    • BREAKING REFACTOR: generate api cleanup (#125).
    Open source →
  24. 0.0.1-dev.3 16 Jan 2026 pre-release
    Release notes
    • REFACTOR: automate telemetry exporter configuration (#131).
    • DOCS: Add best practices, a Text-to-Speech example, and update the OpenAI package license to the full Apache 2.0 text.
    Open source →
  25. 0.0.1-dev.2 16 Jan 2026 pre-release
    Release notes
    • FEAT(openai): add Vertex support with shared Vertex auth utilities (#185).

    2026-02-27

    Changes


    Packages with breaking changes:

    Packages with other changes:

    Packages with dependency updates only:

    Packages listed below depend on other packages in this workspace that have had changes. Their versions have been incremented to bump the minimum dependency versions of the packages they depend upon in this project.

    • genkit_chrome - v0.0.1-dev.8

    Open source →
    Release notes

    Note: This release has breaking changes.

    • BREAKING REFACTOR: renamed genkit_schema_builder package to schemantic (#26).
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive