You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue
A present Open API 3.0 Examples are returned randomly, the only differentiator is setting a Preferred HTTP response code:
// Choose a random example to return.
keys := make([]string, 0, len(mt.Examples))
for k := range mt.Examples {
keys = append(keys, k)
}
selected := keys[rand.Intn(len(keys))]
return mt.Examples[selected].Value.Value, nil
Request
It would be great if we could define which mocks to return also using path params, query strings, and even request/response payloads. See how Microcks uses this ability: http://microcks.github.io/using/openapi/
The text was updated successfully, but these errors were encountered:
Issue
A present Open API 3.0 Examples are returned randomly, the only differentiator is setting a Preferred HTTP response code:
Request
It would be great if we could define which mocks to return also using path params, query strings, and even request/response payloads. See how Microcks uses this ability: http://microcks.github.io/using/openapi/
The text was updated successfully, but these errors were encountered: