mercredi 25 mars 2015

How do I model a key/value for which the key is not known in swagger


Vote count:

0




I have a simple JSON object that can contain key/values for which the exact values are not known upfront. They depend on some server side process. How do I model this in swagger?


An example of the JSON would be:



...
,message: "invalid length. Must be in between {min} and {max}"
,attributes: {
min: 0
,max: 6
}
...


asked 2 mins ago







How do I model a key/value for which the key is not known in swagger

Aucun commentaire:

Enregistrer un commentaire