Last updated:
0 purchases
openapi dart
openapi_dart #
An OpenAPI JSON Spec Parser for dart, from: https://swagger.io/specification/
OpenAPI version: 3.1
Features #
Load OpenAPI json file, and convert to dart object
Usage #
According to /example/openapi_dart_example.dart
From JSON String
Future<void> main() async {
String jsonString = "{...OpenAPI String...}";
OpenAPILoader openAPILoader = OpenAPILoader();
OpenAPI openAPI = await openAPILoader.load(jsonString);
}
copied to clipboard
From JSON File
Future<void> main() async {
String jsonPath = "$currentWorkingDirectory/example/json/$jsonFileName";
OpenAPILoader openAPILoader = OpenAPILoader();
OpenAPI openAPI = await openAPILoader.loadFromFile(jsonPath);
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.