diff --git a/packages/dynamite/lib/src/openapi_builder.dart b/packages/dynamite/lib/src/openapi_builder.dart index e4b348ac..4594a45d 100644 --- a/packages/dynamite/lib/src/openapi_builder.dart +++ b/packages/dynamite/lib/src/openapi_builder.dart @@ -22,6 +22,10 @@ class OpenAPIBuilder implements Builder { await buildStep.readAsString(inputId), ) as Map, ); + if (spec.version != '3.1.0') { + throw Exception('Only OpenAPI 3.1.0 is supported'); + } + final tags = [ null, if (spec.tags != null) ...[