platform/packages/openapi
2024-08-04 16:18:17 -07:00
..
lib update(conduit): refactoring open_api to openapi 2024-08-04 16:07:13 -07:00
test update(conduit): refactoring open_api to openapi 2024-08-04 06:05:44 -07:00
.gitignore add(conduit): adding openapi refactor 2024-08-04 02:12:44 -07:00
analysis_options.yaml add(conduit): adding openapi refactor 2024-08-04 02:12:44 -07:00
CHANGELOG.md add(conduit): adding openapi refactor 2024-08-04 02:12:44 -07:00
pubspec.yaml add(conduit): working on refactoring open_api to openapi 2024-08-04 03:59:05 -07:00
README.md update(conduit): updating readme 2024-08-04 16:18:17 -07:00

protevus_openapi

Reads and writes OpenAPI (Swagger) specifications.

conduit_open_api supports both v2 and v3 of the open_api specification.

To use v2 import:

import 'package:conduit_open_api/v2.dart';

To use v3 import:

import 'package:conduit_open_api/v3.dart';

You can us v2 and v3 within a single project.

Example

import 'package:conduit_open_api/v3.dart';


final file = File("test/specs/kubernetes.json");
final contents = await file.readAsString();
final doc = APIDocument.fromJSON(contents);

final output = JSON.encode(doc.asMap());