So I don’t really know what you’re trying to describe but if you change the
Comment definition to just
"Comment": {
"type": "object",
"title": "Comment",
"required": [
"id"
],
"properties": {
"id": {
"title": "id",
"type": "string"
}
}
}
it will render as expected.
Keep in mind, ‘null’ is not a valid type, nor is an array of types.
From: <[email protected]> on behalf of Andrew Campbell
<[email protected]>
Reply-To: "[email protected]"
<[email protected]>
Date: Wednesday, 17 August 2016 at 02:54
To: Swagger <[email protected]>
Subject: Re: <!-- invalid XML --> in Swagger UI Example Value
Thanks. I've used http://bigstickcarpet.com/swagger-parser/www/index.html to
find the validation issues with my spec, and I have altered it so it is now
valid, at least according to that validator.
I'm still getting the same problem, and I could really use some help in getting
this fixed.
Updated spec is attached.
--
You received this message because you are subscribed to the Google Groups
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.