validate method

List<ContractViolation> validate(
  1. Object? value,
  2. String schemaName
)

Validates value against the schema schemaName of components.schemas.

Implementation

List<ContractViolation> validate(Object? value, String schemaName) {
  final out = <ContractViolation>[];
  _check(value, {r'$ref': '#/components/schemas/$schemaName'}, '', out);
  return out;
}