class-validator-jsonschema
Advanced tools
Comparing version 1.1.3 to 1.2.0
@@ -15,3 +15,8 @@ "use strict"; | ||
if (_.isFunction(meta.target)) { | ||
const childType = getPropType(meta.target.prototype, meta.propertyName); | ||
const typeMeta = options.classTransformerMetadataStorage | ||
? options.classTransformerMetadataStorage.findTypeMetadata(meta.target, meta.propertyName) | ||
: null; | ||
const childType = typeMeta | ||
? typeMeta.typeFunction() | ||
: getPropType(meta.target.prototype, meta.propertyName); | ||
return targetToSchema(childType, options); | ||
@@ -354,2 +359,2 @@ } | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmYXVsdENvbnZlcnRlcnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvZGVmYXVsdENvbnZlcnRlcnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFDQSxxREFBaUQ7QUFFakQsNEJBQTJCO0FBRTNCLDRCQUF5QjtBQWFaLFFBQUEsaUJBQWlCLEdBQXNCO0lBQ2xELENBQUMsaUNBQWUsQ0FBQyxpQkFBaUIsQ0FBQyxFQUFFLENBQUMsSUFBSSxFQUFFLE9BQU8sRUFBRSxFQUFFO1FBQ3JELEVBQUUsQ0FBQyxDQUFDLENBQUMsQ0FBQyxVQUFVLENBQUMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxDQUFDLENBQUMsQ0FBQztZQUM5QixNQUFNLElBQUksR0FBRyxXQUFXLENBQUMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxTQUFTLEVBQUUsSUFBSSxDQUFDLFlBQVksQ0FBQyxDQUFBO1lBQ2xFLE1BQU0sQ0FBQyxjQUFjLENBQUMsSUFBSSxFQUFFLE9BQU8sQ0FBQyxDQUFBO1FBQ3RDLENBQUM7SUFDSCxDQUFDO0lBQ0QsQ0FBQyxpQ0FBZSxDQUFDLGlCQUFpQixDQUFDLEVBQUUsQ0FBQyxJQUFJLEVBQUUs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0,1 +1,2 @@ | ||
import { MetadataStorage } from 'class-transformer/metadata/MetadataStorage'; | ||
import { ValidatorOptions } from 'class-validator'; | ||
@@ -5,4 +6,5 @@ import { ISchemaConverters } from './defaultConverters'; | ||
additionalConverters: ISchemaConverters; | ||
classTransformerMetadataStorage?: MetadataStorage; | ||
refPointerPrefix: string; | ||
} | ||
export declare const defaultOptions: IOptions; |
@@ -7,2 +7,2 @@ "use strict"; | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3B0aW9ucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9vcHRpb25zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBbUJhLFFBQUEsY0FBYyxHQUFhO0lBQ3RDLG9CQUFvQixFQUFFLEVBQUU7SUFDeEIsZ0JBQWdCLEVBQUUsZ0JBQWdCO0NBQ25DLENBQUEifQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3B0aW9ucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9vcHRpb25zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBMkJhLFFBQUEsY0FBYyxHQUFhO0lBQ3RDLG9CQUFvQixFQUFFLEVBQUU7SUFDeEIsZ0JBQWdCLEVBQUUsZ0JBQWdCO0NBQ25DLENBQUEifQ== |
@@ -9,2 +9,6 @@ # Changelog | ||
## [1.2.0] - 2018-09-25 | ||
### Added | ||
- Support `class-transfomer`'s `@Type` decorator for explicitly defining type of nested properties wrapped in a generic (e.g. `@ValidateNested({ each: true }) users: UserClass[]`) [#7](https://github.com/epiphone/class-validator-jsonschema/issues/7) | ||
## [1.1.3] - 2018-09-12 | ||
@@ -11,0 +15,0 @@ ### Fixed |
{ | ||
"name": "class-validator-jsonschema", | ||
"version": "1.1.3", | ||
"version": "1.2.0", | ||
"description": "Convert class-validator-decorated classes into JSON schema", | ||
@@ -31,2 +31,3 @@ "keywords": [ | ||
"dependencies": { | ||
"class-transformer": "^0.1.9", | ||
"class-validator": "^0.7.3", | ||
@@ -33,0 +34,0 @@ "debug": "^3.1.0", |
@@ -190,2 +190,42 @@ # class-validator-jsonschema | ||
### @ValidateNested and arrays | ||
`class-validator` supports validating nested objects via the [`@ValidateNested` decorator](https://github.com/typestack/class-validator#validating-nested-objects). Likewise JSON Schema generation is supported out-of-the-box for nested properties such as | ||
```typescript | ||
@ValidateNested() | ||
user: UserClass | ||
``` | ||
However, due to [limitations in Typescript's reflection system](https://github.com/Microsoft/TypeScript/issues/10576) we cannot infer the inner type of a generic class. In effect this means that properties like | ||
```typescript | ||
@ValidateNested({ each: true }) | ||
users: UserClass[] | ||
@ValidateNested() | ||
user: Promise<UserClass> | ||
``` | ||
would resolve to classes `Array` and `Promise` in JSON Schema. To work around this limitation we can use `@Type` from `class-transformer` to explicitly define the nested property's inner type: | ||
```typescript | ||
import { Type } from 'class-transformer' | ||
import { defaultMetadataStorage } from 'class-transformer/storage' | ||
import { validationMetadatasToSchemas } from 'class-validator-jsonschema' | ||
class User { | ||
@ValidateNested({ each: true }) | ||
@Type(() => BlogPost) // 1) Explicitly define the nested property type | ||
blogPosts: BlogPost[] | ||
} | ||
const schemas = validationMetadatasToSchemas(metadatas, { | ||
classTransformerMetadataStorage: defaultMetadataStorage // 2) Define class-transformer metadata in options | ||
}) | ||
``` | ||
Note also how the `classTransformerMetadataStorage` option has to be defined for `@Type` decorator to take effect. | ||
## Limitations | ||
@@ -192,0 +232,0 @@ |
@@ -28,3 +28,11 @@ // tslint:disable:no-submodule-imports | ||
if (_.isFunction(meta.target)) { | ||
const childType = getPropType(meta.target.prototype, meta.propertyName) | ||
const typeMeta = options.classTransformerMetadataStorage | ||
? options.classTransformerMetadataStorage.findTypeMetadata( | ||
meta.target, | ||
meta.propertyName | ||
) | ||
: null | ||
const childType = typeMeta | ||
? typeMeta.typeFunction() | ||
: getPropType(meta.target.prototype, meta.propertyName) | ||
return targetToSchema(childType, options) | ||
@@ -31,0 +39,0 @@ } |
@@ -0,1 +1,2 @@ | ||
import { MetadataStorage } from 'class-transformer/metadata/MetadataStorage' // tslint:disable-line:no-submodule-imports | ||
import { ValidatorOptions } from 'class-validator' | ||
@@ -14,2 +15,9 @@ | ||
/** | ||
* Metadata storage instance of class-transformer. This value can be | ||
* optionally defined in order for class-transformer's @Type decorators to | ||
* have effect in JSON Schema generation. | ||
*/ | ||
classTransformerMetadataStorage?: MetadataStorage | ||
/** | ||
* A prefix added to all `$ref` JSON pointers referencing other schemas. | ||
@@ -16,0 +24,0 @@ * Defaults to '#/definitions/'. |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
195787
29
2053
256
7
+ Addedclass-transformer@^0.1.9
+ Addedclass-transformer@0.1.10(transitive)