https://github.com/stablekernel/open-api-dart
OpenAPI (Swagger) data structures in Dart
https://github.com/stablekernel/open-api-dart
Last synced: 3 months 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: 2022-10-10T19:21:52.000Z (over 3 years ago)
- Last Synced: 2023-12-05T11:56:32.532Z (about 2 years ago)
- Language: Dart
- Size: 246 KB
- Stars: 12
- Watchers: 5
- Forks: 10
- 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());
```