OpenApiV32Operation class final
The request and possible responses for one HTTP method.
Constructors
-
OpenApiV32Operation({OpenApiV32Responses? responses, List<
String> ? tags, String? summary, String? description, OpenApiV32ExternalDocumentation? externalDocs, String? operationId, List<OpenApiV32RefOr< ? parameters, OpenApiV32RefOr<OpenApiV32Parameter> >OpenApiV32RequestBody> ? requestBody, Map<String, OpenApiV32RefOr< ? callbacks, bool? deprecated, List<OpenApiV32Callback> >OpenApiV32SecurityRequirement> ? security, List<OpenApiV32Server> ? servers, Map<String, JsonValue> extensions = const {}, Map<String, JsonValue> extraFields = const {}}) - Groups request metadata and responses for one HTTP method.
Properties
-
callbacks
→ Map<
String, OpenApiV32RefOr< ?OpenApiV32Callback> > -
Callback definitions indexed by name.
final
- deprecated → bool?
-
Whether the author discourages new uses.
final
- description → String?
-
Description supplied by the document author.
final
-
extensions
→ Map<
String, JsonValue> -
Specification extensions keyed by their
x-names. Defaults to empty.finalinherited - externalDocs → OpenApiV32ExternalDocumentation?
-
A link to related documentation.
final
-
extraFields
→ Map<
String, JsonValue> -
Unrecognized fields retained for JSON export. Defaults to empty.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- operationId → String?
-
Identifier used to refer to an operation.
final
-
parameters
→ List<
OpenApiV32RefOr< ?OpenApiV32Parameter> > -
Operation parameters that extend or override path parameters.
final
-
requestBody
→ OpenApiV32RefOr<
OpenApiV32RequestBody> ? -
The body accepted by this operation.
final
- responses → OpenApiV32Responses?
-
Possible results of the operation, indexed by response key.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
security
→ List<
OpenApiV32SecurityRequirement> ? -
Operation-level alternatives that override document security.
final
-
servers
→ List<
OpenApiV32Server> ? -
Base URLs for API calls in this scope.
final
- summary → String?
-
Short description supplied by the document author.
final
-
Names of the tags assigned to this operation.
final
Methods
-
extraToJson(
) → Map< String, Object?> -
Exports extensions and unrecognized fields as JSON.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
Returns a detached JSON representation.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited