You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2019/02/05 21:59:48 UTC

[GitHub] moltzaum edited a comment on issue #3304: Golang endpoints should accept "string integers"

moltzaum edited a comment on issue #3304: Golang endpoints should accept "string integers"
URL: https://github.com/apache/trafficcontrol/issues/3304#issuecomment-460812972
 
 
   Do you think that it would be possible to avoid using `JSONIntStr` and instead replace `"[0-9]*"` with the number inside the quotes before decoding? Would that break anything?
   
   Another potential solution is to replace `[0-9]` (excluding quotes) with the number now inside quotes. Then the json struct tag can be `",string"` for that field.
   
   EDIT: nvm, I think something more robust is needed if we need to support floating point and boolean types as well
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services