Skip to content

method.input_concept_mismatch

A pipe's input concept does not fit its use

Type https://mthds.ai/errors/method.input_concept_mismatch
Family method: The method as written, the validation vocabulary included.
Domain method: the method's author acts, by changing the method
Retry no: repeating the operation fails the same way
HTTP status 422
Raised as a problem document, sent as the body of an HTTP response or kept in a run's record

What it means

An input is declared as a concept that its use does not accept, such as a step that hands it to a pipe expecting another concept.

What to do

Declare the input as one of params.expected, or as a concept that refines one, or change what reads it.

Next steps

A problem carries the step aimed at whoever reads it: the first when its reader is the domain's actor, the method's author, and the second for any other reader.

Reader Kind Detail
The domain's actor change_method Declare the input '{input}' of pipe '{pipe}' with a concept its use accepts, then validate the method again.
Any other reader contact_owner Ask the method's owner to declare the input '{input}' of pipe '{pipe}' with a concept its use accepts.

Detail

The problem's detail is written from this template, filled with the occurrence's parameters:

Pipe '{pipe}' declares the input '{input}' as '{declared}', which its use does not accept. It accepts: {expected}.

Parameters

Every parameter is present on every occurrence of the code.

Name Type Description
pipe identifier The pipe at fault.
input identifier The input.
declared identifier The concept the input is declared as.
expected list of identifier The concepts its use accepts.

See also