diff options
Diffstat (limited to 'src/onapsdk/cds/data_dictionary.py')
-rw-r--r-- | src/onapsdk/cds/data_dictionary.py | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/src/onapsdk/cds/data_dictionary.py b/src/onapsdk/cds/data_dictionary.py index b4d8d0e..27cfc29 100644 --- a/src/onapsdk/cds/data_dictionary.py +++ b/src/onapsdk/cds/data_dictionary.py @@ -136,6 +136,7 @@ class DataDictionary(CdsElement): - "entry_schema" - "updatedBy" - "definition" + "definition" key value should contains the "raw" data dictionary. Returns: @@ -153,15 +154,17 @@ class DataDictionary(CdsElement): this kind of data dictionary can't be uploaded to blueprintprocessor. That method tries to fix it. It can be done only if "raw" data dictionary has a given schema: - { - "name": "string", - "tags": "string", - "updated-by": "string", - "property": { - "description": "string", - "type": "string" - } - } + + .. code-block: json: + { + "name": "string", + "tags": "string", + "updated-by": "string", + "property": { + "description": "string", + "type": "string" + } + } Raises: ValidationError: Data dictionary doesn't have all required keys |