fix: restore screener OpenAPI constraints (WealthLedger/backend#70)
Backend verify / commits (pull_request) Successful in 26s
Backend verify / security (pull_request) Successful in 10s
Backend verify / verify (pull_request) Successful in 4m19s

This commit is contained in:
2026-10-15 05:48:57 +03:00
parent 0d7839cf79
commit 4b68e20f6e
3 changed files with 20 additions and 2 deletions
+7
View File
@@ -122,6 +122,13 @@ describe('OpenAPI contract (integration)', () => {
});
it('generates the runtime contract without server startup or deployment configuration', async () => {
const schemas = createOpenApiDocument(app).components?.schemas;
expect(schemas?.StockScreenerCriteriaDto).toMatchObject({
additionalProperties: false,
});
expect(schemas?.StockScreenerItemDto).toMatchObject({
properties: { lot: { type: 'integer', minimum: 1, nullable: true } },
});
expect(
createOpenApiDocument(app).components?.schemas?.ProblemDetailsDto,
).toMatchObject({