We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e66f4e0 commit 548d334Copy full SHA for 548d334
src/routes/validate.ts
@@ -167,20 +167,18 @@ export const registerValidationRoutes = (app: Express) => {
167
// Put in kind field to indicate violation
168
kind: 'rule-validation',
169
//Payload
170
- payload: result, // ValidationResponseDto
171
- report: result.report,
+ payload: result,
172
}),
173
);
174
}
175
// No rule violation and success response goes here
176
return res.status(200).json({
177
ok: true,
178
179
180
181
});
182
} catch (e) {
183
- // SpecParseError / ProblemDetailsDTO fångas här
+ // Hantera SpecParseError här
184
next(e);
185
186
0 commit comments