open_api_dart

Reads and writes OpenAPI (Swagger) specifications.

Example

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

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

Libraries

v2
Support for doing something awesome.
v3