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 2026Releases
latest 7-
2.1.001 Mar 2026Release notes
Open source →-
feat: Added lightweight validation API with
OpenApiValidatorandvalidateMap()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
callbackssupport toOperationObjectV3(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.fromMapnow supportsdefaultresponses correctly. -
fix:
LinkObjectV3.parametersnow accepts runtime expressions and literal JSON values without schema coercion. -
fix:
MediaTypeObjectV3now supports singularexamplein addition toexamples. -
fix:
SchemaObjectV3now preservesidand$schemafields. -
fix: Added Swagger/OpenAPI 2.0 array parameter support (
items,collectionFormat) inParameterObjectV2. -
fix: Relaxed discriminator mapping typing to avoid overly strict string-only casting.
-
compliance: Added OpenAPI 3.1
typearray support inSchemaObjectV31and wiredComponentsObjectV31schema parsing to useSchemaObjectV31. -
compliance: Added OpenAPI 3.1 version validation in
DocumentV31. -
compliance: Enforced parameter
schemavscontentmutual exclusivity in v3 parameter base model. -
breaking:
OperationObjectV3.responsesis now required (non-null). -
breaking:
ResponseObjectV3.descriptionis now required (non-null). -
breaking:
RequestBodyV3.contentis now required (non-null). -
breaking:
OAuth2SecuritySchemeV3.flowsnow uses a map keyed by flow name; a compatibility getter (flowList) is provided.
-
-
2.0.224 Feb 2026Release notes
Open source →- fix: RefernceObject now is a JsonSchema object, and it has a constructor that takes a String ref as parameter.
-
2.0.105 Nov 2025 -
2.0.030 Oct 2025 -
1.1.122 Oct 2025 -
1.1.013 Oct 2025 -
1.0.009 Oct 2025