Reimplemented fixes after merge with master

This commit is contained in:
Owen Conti
2017-07-17 18:46:29 -06:00
parent 97b8123610
commit a18c100d3f
2 changed files with 6 additions and 4 deletions

View File

@@ -48,7 +48,7 @@ export default class Model extends Component {
switch(type) {
case "object":
return <ObjectModel className="object" { ...this.props } schema={ modelSchema }
name={ name || modelName }
name={ name || modelName } required={ required }
isRef={ isRef!== undefined ? isRef : !!$$ref }/>
case "array":
return <ArrayModel className="array" { ...this.props } schema={ modelSchema } required={ required } />