dpgaspar commented on a change in pull request #11770:
URL: 
https://github.com/apache/incubator-superset/pull/11770#discussion_r539547385



##########
File path: superset/reports/commands/update.py
##########
@@ -87,6 +88,11 @@ def validate(self) -> None:
         # Validate chart or dashboard relations
         self.validate_chart_dashboard(exceptions, update=True)
 
+        if "validator_config_json" in self._properties:
+            self._properties["validator_config_json"] = json.dumps(
+                self._properties["validator_config_json"]
+            )
+

Review comment:
       I think that the OpenAPI spec is clear on this, it's just a nested 
structure, this happens on other places also. I think it's more elegant then 
sending a JSON string for a specific field




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to