MCPcopy
hub / github.com/swagger-api/swagger-ui / defaultStatusCode

Function defaultStatusCode

src/core/utils/index.js:182–185  ·  view source on GitHub ↗
( responses )

Source from the content-addressed store, hash-verified

180}
181
182export function defaultStatusCode ( responses ) {
183 let codes = responses.keySeq()
184 return codes.contains(DEFAULT_RESPONSE_KEY) ? DEFAULT_RESPONSE_KEY : codes.filter( key => (key+"")[0] === "2").sort().first()
185}
186
187
188/**

Callers 1

renderMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…