rudak opened a new issue, #36946:
URL: https://github.com/apache/superset/issues/36946
### Bug description
When editing a dataset and configuring a column to display a currency
suffix, I encounter a validation error when saving the dataset.
Steps:
Go to a dataset -> Edit -> Edit a Metrics column
Set the Metric currency with:
symbol position: suffix
symbol: EUR
Save the dataset
At this point, saving fails with the following error:
Error saving dataset
The schema of the submitted payload is invalid.
Length must be between 1 and 128.:
`{"0":"{","1":"'","2":"s","3":"y","4":"m","5":"b","6":"o","7":"l","8":"'","9":":","10":"
","11":"'","12":"E","13":"U","14":"R","15":"'","16":",","17":"
","18":"'","19":"s","20":"y","21":"m","22":"b","23":"o","24":"l","25":"P","26":"o","27":"s","28":"i","29":"t","30":"i","31":"o","32":"n","33":"'","34":":","35":"
","36":"'","37":"s","38":"u","39":"f","40":"f","41":"i","42":"x","43":"'","44":"}","symbolPosition":"suffix","symbol":"EUR"}`
<img width="897" height="670" alt="Image"
src="https://github.com/user-attachments/assets/ebbffc81-d967-47f7-bcb2-8631ef885fe4"
/>
It looks like the UI submits a JSON object for the currency configuration,
but the backend schema expects a string with a maximum length of 128
characters. The payload appears to be interpreted character by character
instead of as a valid string.
Version
Superset 5.0.0
### Screenshots/recordings
``
### Superset version
5.0.0
### Python version
3.11
### Node version
I don't know
### Browser
Firefox
### Additional context
_No response_
### Checklist
- [ ] I have searched Superset docs and Slack and didn't find a solution to
my problem.
- [ ] I have searched the GitHub issue tracker and didn't find a similar bug
report.
- [ ] I have checked Superset's logs for errors and if I found a relevant
Python stacktrace, I included it here as text in the "additional context"
section.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]