Reads and writes OpenAPI (Swagger) specifications.
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());
APISchemaObject.isFreeFormand related support for free-form schema objects.
Add this to your package's pubspec.yaml file:
dependencies: open_api: "^1.0.2"
You can install packages from the command line:
$ pub get
$ flutter packages get
Alternatively, your editor might support
pub get or
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
import 'package:open_api/v2.dart'; import 'package:open_api/v3.dart';
|1.0.2||Feb 14, 2018|
|1.0.1||Feb 3, 2018|
|1.0.0||Jan 29, 2018|
|0.9.1||Oct 11, 2017|
|0.9.0||Oct 8, 2017|
We analyzed this package, and provided a score, details, and suggestions below.
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Detected platforms: Flutter, web, other
No platform restriction found in libraries.
Maintain an example.
Create a short demo in the
example/directory to show how to use this package. Common file name patterns include:
example.dartor you could also use