PackageTrack
Sign in Get early access

openapi_types

A Dart package providing OpenAPI types and utilities for API documentation.

2.1.0 3.1K downloads/mo #4584 most downloaded on pub.dev avesbox/openapi_types

What this package is like to depend on

Last release 5 months ago

01 Mar 2026

Release timing varies

gaps range from 8 days to 4 months

Nearly every release is documented

notes for 7 of 7 stable releases

Nothing withdrawn

no release was ever pulled

10 months old

7 releases · first in 2025

7 releases in the last 12 months

see the full history below

Release timeline

7 releases · Oct 2025 to Mar 2026
2026
Release Pre-release

Releases

latest 7
  1. 2.1.0 01 Mar 2026
    Release notes
    • feat: Added lightweight validation API with OpenApiValidator and validateMap() for pre-parse checks.

    • feat: Added mixed-version diagnostics for OpenAPI 3.0 vs 3.1-only fields (webhooks, jsonSchemaDialect, components.pathItems, etc.).

    • feat: Added parameter style serialization helper for OpenAPI v3 (form, simple, matrix, label, spaceDelimited, pipeDelimited, deepObject).

    • feat: Added OpenAPI 3.0 callbacks support to OperationObjectV3 (parse, model, serialize).

    • fix: Preserved vendor extensions (x-*) across more objects (InfoObject, SchemaObjectV3, ResponseObjectV3, MediaTypeObjectV3, RequestBodyV3, and related parsing paths).

    • fix: OpenAPI parser version detection is now strict for supported versions (2.0, 3.0.x, 3.1.x).

    • fix: OperationObjectV3.fromMap now supports default responses correctly.

    • fix: LinkObjectV3.parameters now accepts runtime expressions and literal JSON values without schema coercion.

    • fix: MediaTypeObjectV3 now supports singular example in addition to examples.

    • fix: SchemaObjectV3 now preserves id and $schema fields.

    • fix: Added Swagger/OpenAPI 2.0 array parameter support (items, collectionFormat) in ParameterObjectV2.

    • fix: Relaxed discriminator mapping typing to avoid overly strict string-only casting.

    • compliance: Added OpenAPI 3.1 type array support in SchemaObjectV31 and wired ComponentsObjectV31 schema parsing to use SchemaObjectV31.

    • compliance: Added OpenAPI 3.1 version validation in DocumentV31.

    • compliance: Enforced parameter schema vs content mutual exclusivity in v3 parameter base model.

    • breaking: OperationObjectV3.responses is now required (non-null).

    • breaking: ResponseObjectV3.description is now required (non-null).

    • breaking: RequestBodyV3.content is now required (non-null).

    • breaking: OAuth2SecuritySchemeV3.flows now uses a map keyed by flow name; a compatibility getter (flowList) is provided.

    Open source →
  2. 2.0.2 24 Feb 2026
    Release notes
    • fix: RefernceObject now is a JsonSchema object, and it has a constructor that takes a String ref as parameter.
    Open source →
  3. 2.0.1 05 Nov 2025
    Release notes
    • fix: add missing types in DocumentV2
    Open source →
  4. 2.0.0 30 Oct 2025
    Release notes
    • fix!: improved interoperability between OpenAPI types.
    Open source →
  5. 1.1.1 22 Oct 2025
    Release notes
    • fix: changed some interfaces to support null safety.
    Open source →
  6. 1.1.0 13 Oct 2025
    Release notes
    • feat: Added Parser from and to JSON/YAML.
    Open source →
  7. 1.0.0 09 Oct 2025
    Release notes
    • Initial version.
    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