Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@JSONSchema not working #10

Closed
elSuperRiton opened this issue Feb 22, 2019 · 1 comment
Closed

@JSONSchema not working #10

elSuperRiton opened this issue Feb 22, 2019 · 1 comment

Comments

@elSuperRiton
Copy link

elSuperRiton commented Feb 22, 2019

Hello, I'm trying to implement the @jsonschema decorator to add some special properties and for some unknown reason this doesn't seems to work. Nothing is being added to my schemas.

    @ApiModelProperty({required: true, example: '#fff'})
    @IsNotEmpty()
    @IsHexColor()
    @JSONSchema({
        isColorPicker: true,
    })
    readonly textColor: string;

    @ApiModelProperty({required: true, type: [CreateBannerTextDto]})
    @ArrayNotEmpty()
    @Type(() => CreateBannerTextDto)
    @JSONSchema({
        isWysiwyg: true,
    })
    readonly content: CreateBannerTextDto[];
@elSuperRiton
Copy link
Author

My bad, seems like it's working. My compilation wasn't working on my side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant