https://github.com/stablekernel/open-api-dart
OpenAPI (Swagger) data structures in Dart
https://github.com/stablekernel/open-api-dart
Last synced: 16 days ago
JSON representation
OpenAPI (Swagger) data structures in Dart
- Host: GitHub
- URL: https://github.com/stablekernel/open-api-dart
- Owner: stablekernel
- License: bsd-2-clause
- Created: 2017-10-05T17:08:11.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-01-29T10:37:57.000Z (about 2 years ago)
- Last Synced: 2025-11-28T06:48:08.587Z (4 months ago)
- Language: Dart
- Size: 246 KB
- Stars: 13
- Watchers: 3
- Forks: 15
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# open_api_dart
Reads and writes OpenAPI (Swagger) specifications.
Example
---
```dart
final file = new File("test/specs/kubernetes.json");
final contents = await file.readAsString();
final doc = new APIDocument.fromJSON(contents);
final output = JSON.encode(doc.asMap());
```