Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Make it not fail render on binary type. It will still probably not …
Browse files Browse the repository at this point in the history
…work though
  • Loading branch information
Dom Harrington committed Oct 30, 2017
1 parent a5fcf2c commit 00f7e2f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/api-explorer-ui/src/Params.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const PropTypes = require('prop-types');
const Form = require('react-jsonschema-form').default;
const UpDownWidget = require('react-jsonschema-form/lib/components/widgets/UpDownWidget').default;
const TextWidget = require('react-jsonschema-form/lib/components/widgets/TextWidget').default;
const FileWidget = require('react-jsonschema-form/lib/components/widgets/FileWidget').default;

const ObjectField = require('./form-components/ObjectField');
const SchemaField = require('./form-components/SchemaField');
Expand Down Expand Up @@ -34,6 +35,7 @@ function Params({ oas, operation, formData, onChange, onSubmit }) {
int32: UpDownWidget,
double: UpDownWidget,
float: UpDownWidget,
binary: FileWidget,
TextWidget,
}}
onSubmit={onSubmit}
Expand Down

0 comments on commit 00f7e2f

Please sign in to comment.