problemFixture function

Problem problemFixture({
  1. String type = 'urn:diene:problem:test',
  2. String title = 'Test problem',
  3. int status = 400,
  4. String? detail,
  5. bool recoverable = false,
  6. Map<String, Object?> data = const <String, Object?>{},
})

Builders for the reconciliation matrix. Dependency-light — plain values, no test framework. A well-formed RFC 9457 problem fixture.

Implementation

/// A well-formed RFC 9457 problem fixture.
Problem problemFixture({
  String type = 'urn:diene:problem:test',
  String title = 'Test problem',
  int status = 400,
  String? detail,
  bool recoverable = false,
  Map<String, Object?> data = const <String, Object?>{},
}) => Problem(
  type: type,
  title: title,
  status: status,
  detail: detail,
  recoverable: recoverable,
  data: data,
);