From 33e951ab0c9116cae9c914ce0b243126d6fa5354 Mon Sep 17 00:00:00 2001 From: Josh Chappelow Date: Sun, 3 Nov 2024 02:45:14 +0900 Subject: [PATCH] test: unit test --- tests/unit/swagger/schemaDetails3.spec.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/unit/swagger/schemaDetails3.spec.ts b/tests/unit/swagger/schemaDetails3.spec.ts index b2c470db..20b92681 100644 --- a/tests/unit/swagger/schemaDetails3.spec.ts +++ b/tests/unit/swagger/schemaDetails3.spec.ts @@ -4669,6 +4669,12 @@ describe('Definition generation for OpenAPI 3.0.0', () => { type: 'object', }); }); + + it('should generate schema with namespace type casted object', () => { + const response = specDefault.spec.paths['/GetTest/NamespaceWithTypeCastedObject']?.get?.responses; + + expect(response).to.have.all.keys('200'); + }); }); describe('@Res responses', () => {