swagger - Modeling variable key/object name in response -


a rest method's json response i'm documenting contains object name variable. instance, "processes" object below may contain "app" or "service" object, depending on type of process being queried:

// response may contain: "processes": {     "app": {         ...     } }  // or this: "processes": {     "service": {         ...     } } 

what recommended way model type scenario swagger key name not fixed? looked @ enum seems enumerating possible key values, not key names.


Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -