@tsed/schema 7.36.0-rc.2 → 7.36.0-rc.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,7 +17,7 @@ import { IgnoreCallback } from "../../interfaces/IgnoreCallback";
17
17
  * @Property()
18
18
  * lastName: string;
19
19
  *
20
- * @Ignore((value, ctx) => !ctx.mongoose) // don't ignore prop only if mongoose
20
+ * @Ignore((value, ctx) => !ctx.endpoint)
21
21
  * password: string;
22
22
  * }
23
23
  * ```
@@ -23,6 +23,7 @@ export declare class JsonSchema extends Map<string, any> implements NestedGeneri
23
23
  readonly $allow: any[];
24
24
  $selfRequired: boolean;
25
25
  $forwardGroups: boolean;
26
+ $ignore: boolean | IgnoreCallback;
26
27
  isDiscriminatorKey: boolean;
27
28
  isDiscriminator: boolean;
28
29
  constructor(obj?: JsonSchema | Partial<JsonSchemaObject>);
@@ -6,4 +6,5 @@ import { Hooks } from "@tsed/core";
6
6
  */
7
7
  export declare function alterIgnore(schema: {
8
8
  $hooks: Hooks;
9
+ $ignore: boolean | Function;
9
10
  }, options: any): any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsed/schema",
3
- "version": "7.36.0-rc.2",
3
+ "version": "7.36.0-rc.3",
4
4
  "description": "JsonSchema module for Ts.ED Framework",
5
5
  "private": false,
6
6
  "source": "./src/index.ts",
@@ -36,7 +36,7 @@
36
36
  "tsed"
37
37
  ],
38
38
  "dependencies": {
39
- "@tsed/openspec": "7.36.0-rc.2",
39
+ "@tsed/openspec": "7.36.0-rc.3",
40
40
  "change-case": "^4.1.2",
41
41
  "fs-extra": "^10.0.1",
42
42
  "json-schema": "0.4.0",
@@ -46,10 +46,10 @@
46
46
  },
47
47
  "devDependencies": {
48
48
  "@apidevtools/swagger-parser": "10.0.3",
49
- "@tsed/core": "7.36.0-rc.2",
50
- "@tsed/eslint": "7.36.0-rc.2",
51
- "@tsed/openspec": "7.36.0-rc.2",
52
- "@tsed/typescript": "7.36.0-rc.2",
49
+ "@tsed/core": "7.36.0-rc.3",
50
+ "@tsed/eslint": "7.36.0-rc.3",
51
+ "@tsed/openspec": "7.36.0-rc.3",
52
+ "@tsed/typescript": "7.36.0-rc.3",
53
53
  "@types/fs-extra": "9.0.13",
54
54
  "@types/json-schema": "7.0.11",
55
55
  "@types/picomatch": "2.3.0",
@@ -58,8 +58,8 @@
58
58
  "picomatch-browser": "https://github.com/silverwind/picomatch#ee6ebcc5570a8846d81610c11ebb92a9e199b145"
59
59
  },
60
60
  "peerDependencies": {
61
- "@tsed/core": "^7.36.0-rc.2",
62
- "@tsed/openspec": "^7.36.0-rc.2"
61
+ "@tsed/core": "^7.36.0-rc.3",
62
+ "@tsed/openspec": "^7.36.0-rc.3"
63
63
  },
64
64
  "peerDependenciesMeta": {
65
65
  "@tsed/openspec": {