OpenApiParser class

A parser for OpenAPI documents supporting versions 2.0, 3.0.x, and 3.1.x.

Constructors

OpenApiParser()
Creates an instance of OpenApiParser.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parseFromJson(String json) OpenAPIDocument<Map<String, dynamic>>
Parses an OpenAPI document from a JSON string.
parseFromYaml(String yaml) OpenAPIDocument<Map<String, dynamic>>
Parses an OpenAPI document from a YAML string.
stringify(OpenAPIDocument<Map<String, dynamic>> document, {bool toYaml = false}) String
Converts an OpenAPIDocument to a JSON or YAML string.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited