How to specify default json value in swagger php documentation?
I have also raised it as a SO question- http://stackoverflow.com/questions/27665622/how-to-specify-default-json-value-in-swagger-php-documentation
Hi, I'm guessing you should convert the defaultValue into a single line, and escape the quotes with a slash.
It says -
[WARN] [Syntax Error] Expected Doctrine\Common\Annotations\DocLexer::T_CLOSE_PARENTHESIS, got 'email' in ....
I've done this - defaultValue = "{"email":"pradeep****@gmail.com","first_name":"Pradeep","last_name":"Kumar","group":"subscriber","password":"password"}"
Hi, I think you'll needt open this in the swagger-php repo, which I believe is here:
https://github.com/zircote/swagger-php
silly question, but did you try single quotes around the JSON?
I have the same problem... also try many approaches without success including single quotes...
Here is the same problem. I think we can avoid this problems escaping the quotes from the source string...or converto to unicode..
has this been resolved? I can escape the quotes like showed but then it replaces it with backslashes in the example so that is not what I am looking for example="{""code"":""3088"",""quantity"":""2""},{""code"":""3089"",""quantity"":""1""}",