From 60b602a42590a4087c874ae0d42b420302a27371 Mon Sep 17 00:00:00 2001 From: GOKULRAJ136 <110164849+GOKULRAJ136@users.noreply.github.com> Date: Tue, 13 Feb 2024 17:02:41 +0530 Subject: [PATCH] Adding maxLength validations Signed-off-by: GOKULRAJ136 <110164849+GOKULRAJ136@users.noreply.github.com> --- .../pmp-entity-spec-bundle/entity-spec/auth-policy.json | 9 ++++++--- .../entity-spec/data-share-policy.json | 9 ++++++--- .../entity-spec/device-detail.json | 6 ++++-- .../pmp-entity-spec-bundle/entity-spec/ftm-detail.json | 6 ++++-- .../pmp-entity-spec-bundle/entity-spec/policy-group.json | 6 ++++-- .../entity-spec/policy-mapping.json | 3 ++- .../pmp-entity-spec-bundle/entity-spec/sbi-detail.json | 3 ++- 7 files changed, 28 insertions(+), 14 deletions(-) diff --git a/artifacts/src/i18n/pmp-entity-spec-bundle/entity-spec/auth-policy.json b/artifacts/src/i18n/pmp-entity-spec-bundle/entity-spec/auth-policy.json index 5ce3254c..989fa896 100644 --- a/artifacts/src/i18n/pmp-entity-spec-bundle/entity-spec/auth-policy.json +++ b/artifacts/src/i18n/pmp-entity-spec-bundle/entity-spec/auth-policy.json @@ -101,7 +101,8 @@ "inputType": "text", "ismandatory": "true", "showInListView": "true", - "showInSingleView": "true" + "showInSingleView": "true", + "maxLength": 128 }, { "name": "desc", @@ -120,7 +121,8 @@ "inputType": "text", "ismandatory": "true", "showInListView": "true", - "showInSingleView": "true" + "showInSingleView": "true", + "maxLength": 256 }, { "name": "policyGroupName", @@ -139,7 +141,8 @@ "inputType": "dropdown", "ismandatory": "true", "showInListView": "true", - "showInSingleView": "true" + "showInSingleView": "true", + "maxLength": 5120 }, { "name": "version", diff --git a/artifacts/src/i18n/pmp-entity-spec-bundle/entity-spec/data-share-policy.json b/artifacts/src/i18n/pmp-entity-spec-bundle/entity-spec/data-share-policy.json index 105d4601..6a68df97 100644 --- a/artifacts/src/i18n/pmp-entity-spec-bundle/entity-spec/data-share-policy.json +++ b/artifacts/src/i18n/pmp-entity-spec-bundle/entity-spec/data-share-policy.json @@ -101,7 +101,8 @@ "inputType": "text", "ismandatory": "true", "showInListView": "true", - "showInSingleView": "true" + "showInSingleView": "true", + "maxLength": 128 }, { "name": "desc", @@ -120,7 +121,8 @@ "inputType": "text", "ismandatory": "true", "showInListView": "true", - "showInSingleView": "true" + "showInSingleView": "true", + "maxLength": 256 }, { "name": "policyGroupName", @@ -139,7 +141,8 @@ "inputType": "dropdown", "ismandatory": "true", "showInListView": "true", - "showInSingleView": "true" + "showInSingleView": "true", + "maxLength": 5120 }, { "name": "version", diff --git a/artifacts/src/i18n/pmp-entity-spec-bundle/entity-spec/device-detail.json b/artifacts/src/i18n/pmp-entity-spec-bundle/entity-spec/device-detail.json index 1fc004f1..8c9cadad 100644 --- a/artifacts/src/i18n/pmp-entity-spec-bundle/entity-spec/device-detail.json +++ b/artifacts/src/i18n/pmp-entity-spec-bundle/entity-spec/device-detail.json @@ -192,7 +192,8 @@ "inputType": "text", "ismandatory": "true", "showInListView": "true", - "showInSingleView": "true" + "showInSingleView": "true", + "maxLength": 36 }, { "name": "model", @@ -211,7 +212,8 @@ "inputType": "text", "ismandatory": "true", "showInListView": "true", - "showInSingleView": "true" + "showInSingleView": "true", + "maxLength": 36 }, { "name": "isItForRegistrationDevice", diff --git a/artifacts/src/i18n/pmp-entity-spec-bundle/entity-spec/ftm-detail.json b/artifacts/src/i18n/pmp-entity-spec-bundle/entity-spec/ftm-detail.json index 07896892..475bca45 100644 --- a/artifacts/src/i18n/pmp-entity-spec-bundle/entity-spec/ftm-detail.json +++ b/artifacts/src/i18n/pmp-entity-spec-bundle/entity-spec/ftm-detail.json @@ -185,7 +185,8 @@ "inputType": "text", "ismandatory": "true", "showInListView": "true", - "showInSingleView": "true" + "showInSingleView": "true", + "maxLength": 36 }, { "name": "model", @@ -204,7 +205,8 @@ "inputType": "text", "ismandatory": "true", "showInListView": "true", - "showInSingleView": "true" + "showInSingleView": "true", + "maxLength": 36 }, { "name": "active", diff --git a/artifacts/src/i18n/pmp-entity-spec-bundle/entity-spec/policy-group.json b/artifacts/src/i18n/pmp-entity-spec-bundle/entity-spec/policy-group.json index 16c46f75..7f20ae05 100644 --- a/artifacts/src/i18n/pmp-entity-spec-bundle/entity-spec/policy-group.json +++ b/artifacts/src/i18n/pmp-entity-spec-bundle/entity-spec/policy-group.json @@ -116,7 +116,8 @@ "inputType": "text", "ismandatory": "true", "showInListView": "true", - "showInSingleView": "true" + "showInSingleView": "true", + "maxLength": 128 }, { "name": "desc", @@ -135,7 +136,8 @@ "inputType": "text", "ismandatory": "true", "showInListView": "true", - "showInSingleView": "true" + "showInSingleView": "true", + "maxLength": 256 }, { "name": "isActive", diff --git a/artifacts/src/i18n/pmp-entity-spec-bundle/entity-spec/policy-mapping.json b/artifacts/src/i18n/pmp-entity-spec-bundle/entity-spec/policy-mapping.json index c0c527af..371cbe83 100644 --- a/artifacts/src/i18n/pmp-entity-spec-bundle/entity-spec/policy-mapping.json +++ b/artifacts/src/i18n/pmp-entity-spec-bundle/entity-spec/policy-mapping.json @@ -174,7 +174,8 @@ "inputType": "text", "ismandatory": "true", "showInListView": "true", - "showInSingleView": "true" + "showInSingleView": "true", + "maxLength": 4000 }, { "name": "statusCode", diff --git a/artifacts/src/i18n/pmp-entity-spec-bundle/entity-spec/sbi-detail.json b/artifacts/src/i18n/pmp-entity-spec-bundle/entity-spec/sbi-detail.json index 4936dae2..01ed933c 100644 --- a/artifacts/src/i18n/pmp-entity-spec-bundle/entity-spec/sbi-detail.json +++ b/artifacts/src/i18n/pmp-entity-spec-bundle/entity-spec/sbi-detail.json @@ -153,7 +153,8 @@ "inputType": "text", "ismandatory": "true", "showInListView": "true", - "showInSingleView": "true" + "showInSingleView": "true", + "maxLength": 64 }, { "name": "swBinaryHash",