PathItem constructor

const PathItem({
  1. String? summary,
  2. String? description,
  3. Operation? get,
  4. Operation? put,
  5. Operation? post,
  6. Operation? delete,
  7. Operation? options,
  8. Operation? head,
  9. Operation? patch,
  10. Operation? trace,
  11. List<Server>? servers,
  12. List<Parameter>? parameters,
  13. @JsonKey(name: '\$ref') @_PathRefConverter() String? ref,
})

Implementation

const factory PathItem({
  /// An optional, string summary, intended to apply to all operations in this Path.
  String? summary,

  /// An optional, string description, intended to apply to all operations in this Path.
  String? description,

  /// A definition of a GET operation on this Path.
  Operation? get,

  /// A definition of a GET operation on this Path.
  Operation? put,

  /// A definition of a GET operation on this Path.
  Operation? post,

  /// A definition of a GET operation on this Path.
  Operation? delete,

  /// A definition of a GET operation on this Path.
  Operation? options,

  /// A definition of a GET operation on this Path.
  Operation? head,

  /// A definition of a GET operation on this Path.
  Operation? patch,

  /// A definition of a GET operation on this Path.
  Operation? trace,

  /// An alternative [Server] array to service all operations in this Path.
  List<Server>? servers,

  /// A list of parameters that are applicable for all the operations described under this Path.
  /// These parameters can be overridden at the operation level, but cannot be removed there.
  List<Parameter>? parameters,

  /// Reference to a response defined in [Components.pathItems]
  @JsonKey(name: '\$ref') @_PathRefConverter() String? ref,
}) = _PathItem;