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

@@ -34,6 +34,13 @@ export class JsonSchemaForm extends Component {
static propTypes = JsonSchemaPropShape
static defaultProps = JsonSchemaDefaultProps
componentDidMount() {
const { dispatchInitialValue, value, onChange } = this.props
if(dispatchInitialValue) {
onChange(value)
}
}
render() {
let { schema, errors, value, onChange, getComponent, fn } = this.props