validateDescriptor
validateDescriptor(
descriptor,options):Promise<{errors:MetadataError[];valid:boolean; }>
Defined in: core/build/general/descriptor/validate.d.ts:8
Validate a descriptor (JSON Object) against a JSON Schema It uses Ajv for JSON Schema validation under the hood It returns a list of errors (empty if valid)
Parameters
Section titled “Parameters”descriptor
Section titled “descriptor”options
Section titled “options”profile
Section titled “profile”Returns
Section titled “Returns”Promise<{ errors: MetadataError[]; valid: boolean; }>