How do i specify optional and variable object properties in swagger?

For example, let's say my JSON is structured like this:

  "name": "Test object 1",
  "attributeA": "Some kind of text",
  "attributeB": "Another kind of text"
  "name": "Test object 2",
  "attributeC": "A different kind of text"

Now, let's assume that there could be dozens of optional keys associated 
with a given object. And these keys might be added to or changed over time 

How do i specify these without having to enumerate all of them in the API 
response documentation?

Thanks for your help!


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 
For more options, visit

Reply via email to