Skip to content

method.schema_violation

The method breaks a rule of the language

Type https://mthds.ai/errors/method.schema_violation
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

A declaration fails the language's schema, or a rule of its pipe type that no sharper code names. It is also the code of a fault of the method that no other code describes.

What to do

Read the rule for the declaration's section or pipe type in the .mthds file format, correct the declaration, and validate the method again.

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 Correct the declaration at '{field_path}', then validate the method again.
Any other reader contact_owner Ask the method's owner to correct the declaration at '{field_path}'.

Detail

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

The declaration at '{field_path}' breaks a rule of the language ({finding}).

Parameters

Every parameter is present on every occurrence of the code.

Name Type Description
field_path identifier The key path of the declaration that breaks the rule.
finding caller_text What the check found.

See also