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

Commit

Permalink
Add support for uuid to Params
Browse files Browse the repository at this point in the history
  • Loading branch information
Dom Harrington committed Aug 15, 2017
1 parent 1b10eda commit 82571ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/api-explorer-ui/src/Params.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const React = require('react');
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 groupParams = require('../../../../lib/swagger/group-params');
const parametersToJsonSchema = require('./lib/parameters-to-json-schema');
Expand All @@ -17,7 +18,7 @@ module.exports = function Params({ swagger, path, pathOperation, formData, onCha
jsonSchema && (
<Form
schema={jsonSchema}
widgets={{ int64: UpDownWidget, int32: UpDownWidget }}
widgets={{ int64: UpDownWidget, int32: UpDownWidget, uuid: TextWidget }}
onSubmit={form => console.log('submit', form.formData)}
formData={formData}
onChange={form => onChange(form.formData)}
Expand Down

0 comments on commit 82571ef

Please sign in to comment.