Skip to content

SudoSOS Back-end API / internal/controller / BodyValidator

Interface: BodyValidator ​

The BodyValidator interface represents the Swagger model validation that is performed on the HTTP request body.

Properties ​

allowBlankTarget? ​

ts
optional allowBlankTarget: boolean;

Whether or not an empty body should pass the validation.


allowExtraProperties? ​

ts
optional allowExtraProperties: boolean;

Whether or not properties not defined in the original model are allowed in the body.


modelName ​

ts
modelName: string;

The name of the Swagger model against which validation will happen.