Skip to content

Commit 33e951a

Browse files
committed
test: unit test
1 parent 29ae90d commit 33e951a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/unit/swagger/schemaDetails3.spec.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4669,6 +4669,12 @@ describe('Definition generation for OpenAPI 3.0.0', () => {
46694669
type: 'object',
46704670
});
46714671
});
4672+
4673+
it('should generate schema with namespace type casted object', () => {
4674+
const response = specDefault.spec.paths['/GetTest/NamespaceWithTypeCastedObject']?.get?.responses;
4675+
4676+
expect(response).to.have.all.keys('200');
4677+
});
46724678
});
46734679

46744680
describe('@Res responses', () => {

0 commit comments

Comments
 (0)