You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In previous versions, the `@default tag was successfully converted to the default value in Swagger. However, it seems that in the latest version, this conversion is no longer working.
export interface ICreateUserRequestDto {
/**
* User's email address
*
* @pattern [a-zA-Z0-9@.]+$
* @maxLength 320
* @default [email protected]
*
*/
email: string;
/**
* Social network service type
*
* @default KAKA
*/
snsType: SnsType;
/**
* Social network service ID
*
* @default 1234567890
*/
snsId: string;
}
After writing the code as above and generating the swagger.json file using the nestia swagger command, the default fields are no longer appearing in the latest version.
I spent over five hours trying to find the cause in the code. When I reverted to the previous working version, 5.3.0, the default fields like "default": "[email protected]" were correctly generated.
Has the `@default tag functionality been removed in the new version, or is this a bug?
Expected behavior
I expected the `@default tag to be converted in the Swagger documentation, with the expected default values included for each field
Describe the bug
In previous versions, the `@default tag was successfully converted to the default value in Swagger. However, it seems that in the latest version, this conversion is no longer working.
After writing the code as above and generating the swagger.json file using the nestia swagger command, the default fields are no longer appearing in the latest version.
I spent over five hours trying to find the cause in the code. When I reverted to the previous working version, 5.3.0, the default fields like "default": "[email protected]" were correctly generated.
Has the `@default tag functionality been removed in the new version, or is this a bug?
Expected behavior
I expected the `@default tag to be converted in the Swagger documentation, with the expected default values included for each field
Actual behavior
The `@default tag is not being converted in the Swagger documentation, and the default values are not included for any of the fields.
The text was updated successfully, but these errors were encountered: