From b93e6a61eb52c364c43190f40c33aa9045ad90d2 Mon Sep 17 00:00:00 2001 From: Bartosz Gardziejewski Date: Thu, 2 Jul 2020 15:07:04 +0200 Subject: Convert yaml schema into tree structure Issue-ID: VNFSDK-594 Signed-off-by: Bartosz Gardziejewski Change-Id: I071095347fbdf824205e63ab9771cdf47d2ad29d --- .../resources/yaml_schema/Simple_Valid_Schema.yaml | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 csarvalidation/src/test/resources/yaml_schema/Simple_Valid_Schema.yaml (limited to 'csarvalidation/src/test/resources/yaml_schema/Simple_Valid_Schema.yaml') diff --git a/csarvalidation/src/test/resources/yaml_schema/Simple_Valid_Schema.yaml b/csarvalidation/src/test/resources/yaml_schema/Simple_Valid_Schema.yaml new file mode 100644 index 0000000..a125b13 --- /dev/null +++ b/csarvalidation/src/test/resources/yaml_schema/Simple_Valid_Schema.yaml @@ -0,0 +1,39 @@ +--- +pmMetaData: { presence: required, structure: { + pmHeader: { + presence: required, + structure: { + nfType: { + presence: required, + comment: "nfType comment" + } + } + }, + pmFields: { + presence: required, + structure: { + measChangeType: { + presence: required, + value: [added, modified, deleted], + comment: "measChangeType comment" + }, + measAdditionalFields: { + presence: required, + comment: "measAdditionalFields comment", + structure: { + vendorField1: { + presence: required, + value: [X, Y, Z], + comment: "vendorField1 comment" + }, + vendorField2: { + presence: optional, + value: [A, B], + comment: "vendorField2 comment" + } + } + } + } + } +}} +... -- cgit 1.2.3-korg