samchon / nestia

NestJS Helper Libraries + TypeScript OpenAPI generator
https://nestia.io/
MIT License
1.85k stars 95 forks source link

Structural error in swagger.json #367

Closed rojiwon123 closed 1 year ago

rojiwon123 commented 1 year ago

@nestia/sdk version

description

swagger editor throw error message

스크린샷 2023-06-04 오후 9 05 12

It seems that the "nestia" library has undergone an update where the "schemas" property in Swagger has been changed to "objects," and an "aliases" property has been added. However, this change is causing an error in the Swagger editor.

In previous versions, the "schemas" property contained all the DTO (Data Transfer Object) information, and union-type DTOs used the "oneof" property instead of the "$ref" property. Currently, the "aliases" property is being generated at the bottom of the swagger.json file, and it refers to the schemas defined here.

스크린샷 2023-06-04 오후 9 01 02
스크린샷 2023-06-04 오후 9 01 37
스크린샷 2023-06-04 오후 9 01 55
samchon commented 1 year ago

Swagger allows only components.schemas property.

I'll update both typia and nestia soon.

Maybe an hour would be consumed.

samchon commented 1 year ago

Upgrade 1.3.1, then be fixed.

samchon commented 1 year ago

Wait an hour more please, not completely fixed.

samchon commented 1 year ago

@industriously Upgrade to v1.3.2, then clearly be fixed.