File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed
json_config_file/json_properties Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ Returned error:
142142 {
143143 "error": JSONProperty.Errors.OBJECT_ONE_IS_REQUIRED,
144144 "properties": ["student", "employee"],
145- "as_text": "One of this properties needs to be specified: student, employee."
145+ "as_text": "One of this properties needs to be specified: [' student', ' employee'] ."
146146 }
147147]
148148```
@@ -167,7 +167,7 @@ Returned error:
167167 {
168168 "error": JSONProperty.Errors.OBJECT_EXCLUSIVITY_ERROR,
169169 "properties": ["student", "employee"],
170- "as_text": "This properties can not be present at the same time: student, employee."
170+ "as_text": "This properties can not be present at the same time: [' student', ' employee'] ."
171171 }
172172]
173173```
Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ Returned error:
176176 "error": JSONProperty.Errors.OBJECT_ONE_IS_REQUIRED,
177177 "properties": ["student", "employee"],
178178 "context": "person",
179- "as_text": "One of this properties needs to be specified: student, employee, at 'person'."
179+ "as_text": "One of this properties needs to be specified: [' student', ' employee'] , at 'person'."
180180 }
181181]
182182```
@@ -204,7 +204,7 @@ Returned error:
204204 "error": JSONProperty.Errors.OBJECT_EXCLUSIVITY_ERROR,
205205 "properties": ["student", "employee"],
206206 "context": "person",
207- "as_text": "This properties can not be present at the same time: student, employee, at 'person'."
207+ "as_text": "This properties can not be present at the same time: [' student', ' employee'] , at 'person'."
208208 }
209209]
210210```
Original file line number Diff line number Diff line change @@ -128,11 +128,13 @@ const MESSAGE_WITHOUT_CONTEXT = "."
128128static func _array_as_text (array : Array ) -> String :
129129 var array_as_text = ""
130130
131- for i in array .size ():
131+ for i in range ( array .size () ):
132132 if i == 0 :
133- array_as_text = String (array [0 ])
133+ array_as_text = "['" + String (array [0 ]) + "'"
134+ elif i == array .size () - 1 :
135+ array_as_text = array_as_text + ", '" + String (array [i ]) + "']"
134136 else :
135- array_as_text = array_as_text + ", " + String (array [i ])
137+ array_as_text = array_as_text + ", ' " + String (array [i ]) + "'"
136138
137139 return array_as_text
138140
You can’t perform that action at this time.
0 commit comments