ocket8888 opened a new issue #6382: URL: https://github.com/apache/trafficcontrol/issues/6382
## This Improvement request (usability, performance, tech debt, etc.) affects these Traffic Control components: - Traffic Ops ## Current behavior: Currently, it's a string that represents an array of strings separated by commas e.g. `"US,CA"`. ## New behavior: Arrays should be arrays e.g. `["US", "CA"]`. If the parser is smart enough (and if we care to do it this way), that could be done in a backward-compatible manner such that if the field is a string it's parsed as a comma-delimited array, and if it's an array it's parsed as such. With the right validation (currently it has none, but country codes can't, for example, legally contain commas) the storage format could even be kept the same, which not only obviates the need for a migration but trivializes supporting old API versions. -- 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]
