play-swagger icon indicating copy to clipboard operation
play-swagger copied to clipboard

Treat `-` character correctly

Open i-am-the-slime opened this issue 8 years ago • 2 comments

- seems to be a valid identifier in a swagger file. The generated Scala code should replace these in scala code or wrap the entire things in backticks.

i-am-the-slime avatar Mar 10 '16 14:03 i-am-the-slime

We do. Play can't deal with that in t's route files.

slavaschmidt avatar Mar 12 '16 16:03 slavaschmidt

Ok, may be it's possible to replace "-" with "-", but what is with other possible characters? Like ":" for example. Would be valid in swagger spec as well.

slavaschmidt avatar Mar 12 '16 16:03 slavaschmidt