feat: OAS3 binary media type support (#4592)

* fix(validator-badge): resolve definition URLs against browser location

* use param as meta parameter if not found

* convert request body from Immutable if necessary

* show file upload for `format: binary` and `format: base64` jsonschema strings

* add `dispatchInitialValue` prop to JsonSchemaForm

* add optional subkey parameter to onChange

* add binary media type support to request body
This commit is contained in:
kyle
2018-05-25 20:37:58 -07:00
committed by GitHub
parent cdbd120589
commit 43304aa80a
8 changed files with 129 additions and 6 deletions

View File

@@ -348,7 +348,9 @@ export const executeRequest = (req) =>
if(isJSONObject(requestBody)) {
req.requestBody = JSON.parse(requestBody)
} else {
} else if(requestBody && requestBody.toJS) {
req.requestBody = requestBody.toJS()
} else{
req.requestBody = requestBody
}
}