I can’t tell if this is supposed to be elixir or json? It doesn’t look like valid syntax for either.
Expected behaviour:
{
"token": ""123"
}
Where are you expecting to see this? In swagger-ui ?
Edit: Re-reading the thread title I see this is about swagger-ui.
The version included with phoenix_swagger is outdated, so if the swagger.json is valid it is probably a bug in swagger-ui.
You can try creating your own swagger-ui plug and see if that fixes the issue.