Details

      Description

      Examples:

      1) When there are several validation errors in configuration:

      • Currently we are showing:
        Fragment configuration is invalid.
        
        #: only 1 subschema matches out of 2
        #/fieldSets/0/fields/0: required key [name] not found
        #/fieldSets/0/fields/0: extraneous key [defaultValue2] is not permitted
        #/fieldSets/0/fields/0: extraneous key [name2] is not permitted
        
      • An improved error message would be:
        Fragment configuration is invalid.
        
        /fieldSets/0/fields/0: required key [name] not found
        /fieldSets/0/fields/0: extraneous key [defaultValue2] is not permitted
        /fieldSets/0/fields/0: extraneous key [name2] is not permitted
        

      2) When JSON is incorrect

      {
      	"fieldSets": [
      		{
      			"fields": [
      				{
      					defaultValue2": "My default button",
      					"name2": "buttonText",
      					"type": "text"
      				}
      			]
      		}
      	]
      }
      
      • Currently we are showing:
        Fragment configuration is invalid.
        
        org.json.JSONException: Expected a ':' after a key at 62 [character 19 line 6]
        
      • An improved error message would be:
        Fragment configuration is invalid.
        
        Expected a ':' after a key at 62 [character 19 line 6]
        

        Attachments

          Activity

            People

            • Assignee:
              brian.chan Brian Chan
              Reporter:
              ruben.pulido Ruben Pulido
              Recent user:
              Clarissa Velazquez
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                45 weeks, 6 days ago

                Packages

                Version Package
                7.2.10 DXP FP2
                7.2.10.1 DXP SP1
                7.2.X
                Master