OAS3 Accept header control: State-side

This commit is contained in:
Kyle Shockey
2017-09-12 19:39:52 -07:00
parent 26edaa5f0b
commit 277cc81a8c
8 changed files with 51 additions and 5 deletions

View File

@@ -30,6 +30,11 @@ export const requestContentType = onlyOAS3((state, path, method) => {
}
)
export const responseContentType = onlyOAS3((state, path, method) => {
return state.getIn(["requestData", path, method, "responseContentType"]) || null
}
)
export const serverVariableValue = onlyOAS3((state, server, key) => {
return state.getIn(["serverVariableValues", server, key]) || null
}