When using Extended Class Objects schema validation returns an error for all Object fields.
By removing schema validation use case will function normally again
Generic error message:
key:"id"
msg:"Key ["id"] does not exist on schema."
type:"invalid value"
Request in use case:
request: { boleta: Object }
Lines commented in usecase.js - starting from line 51
if (request) {
//const requestSchema = schema(this._requestSchema)
//requestSchema.validate(request)
// if (!requestSchema.isValid) return Err(requestSchema.errors)
this._mainStep.context.req = request
}
When using Extended Class Objects schema validation returns an error for all Object fields. By removing schema validation use case will function normally again
Generic error message:
Request in use case:
request: { boleta: Object }
Lines commented in usecase.js - starting from line 51