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
Post a Comment