Skip to content

Commit

Permalink
fix(schema): deprecate Ignore decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
Romakita committed Aug 10, 2023
1 parent 5d7c35b commit 63a86b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/docs/json-mapper.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,11 @@ It means, if you missed decorating one or more properties on your model, these p
:::

## Ignore properties
## Ignore properties (deprecated)

::: warn deprecated
This decorator is deprecated. Use @@Groups@@ decorator instead of.
:::

### Usage

Expand Down
1 change: 1 addition & 0 deletions packages/specs/schema/src/decorators/common/ignore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ const defaultCB = (value: any, ctx: any) => ctx.mongoose !== true;
* @validation
* @swagger
* @schema
* @deprecated Since v7. Use @Groups decorator instead of.
*/
export function Ignore(cb: boolean | IgnoreCallback = defaultCB) {
return JsonEntityFn((store) => {
Expand Down

0 comments on commit 63a86b6

Please sign in to comment.