Operation constructor
const
Operation({
- List<
String> ? tags, - String? summary,
- String? description,
- ExternalDocs? externalDocs,
- @JsonKey(name: 'operationId') String? id,
- List<
Parameter> ? parameters, - RequestBody? requestBody,
- Map<
String, Response> ? responses, - @_ApiCallbackMapConverter() Map<
String, ApiCallback> ? callbacks, - bool? deprecated,
- List<
Security> ? security, - List<
Server> ? servers,
Implementation
const factory Operation({
/// A list of tags for API documentation control.
List<String>? tags,
/// A short summary of what the operation does.
String? summary,
/// An optional string describing the host designated by the URL.
String? description,
/// Additional external documentation for this schema.
ExternalDocs? externalDocs,
/// Unique string used to identify the operation.
/// The id MUST be unique among all operations described in the API.
@JsonKey(name: 'operationId') String? id,
/// A list of parameters that are applicable for this operation.
/// If a parameter is already defined at the [PathItem] level,
/// the new definition will override it but can never remove it.
List<Parameter>? parameters,
/// The request body applicable for this operation.
RequestBody? requestBody,
/// The list of possible responses as they are returned from executing this operation.
Map<String, Response>? responses,
/// A map of possible out-of band callbacks related to the parent operation.
/// The key is a unique identifier for the [ApiCallback] Object.
@_ApiCallbackMapConverter() Map<String, ApiCallback>? callbacks,
/// Declares this operation to be deprecated.
bool? deprecated,
/// A declaration of which security mechanisms can be used for this operation.
/// The list of values includes alternative security requirement objects that can be used.
List<Security>? security,
/// An alternative [Server] array to service this operation.
/// If an alternative [Server] object is specified at the [PathItem] level,
/// it will be overridden by this value.
List<Server>? servers,
}) = _Operation;