Make metadata and scope properties as optional in the VocabularyOptions

This commit is contained in:
Giuseppe Digilio
2020-07-31 14:16:20 +02:00
parent 2ed144bd1c
commit 79db49043f

View File

@@ -11,12 +11,12 @@ export class VocabularyOptions {
/** /**
* The metadata field name (e.g. "dc.type") for which the vocabulary is used: * The metadata field name (e.g. "dc.type") for which the vocabulary is used:
*/ */
metadata: string; metadata?: string;
/** /**
* The uuid of the collection where the item is being submitted * The uuid of the collection where the item is being submitted
*/ */
scope: string; scope?: string;
/** /**
* A boolean representing if value is closely related to a vocabulary entry or not * A boolean representing if value is closely related to a vocabulary entry or not
@@ -24,8 +24,8 @@ export class VocabularyOptions {
closed: boolean; closed: boolean;
constructor(name: string, constructor(name: string,
metadata: string, metadata?: string,
scope: string, scope?: string,
closed: boolean = false) { closed: boolean = false) {
this.name = name; this.name = name;
this.metadata = metadata; this.metadata = metadata;