diff --git a/src/core/components/object-model.jsx b/src/core/components/object-model.jsx index 1555667c..83530530 100644 --- a/src/core/components/object-model.jsx +++ b/src/core/components/object-model.jsx @@ -26,6 +26,8 @@ export default class ObjectModel extends Component { return null } + const { showExtensions } = getConfigs() + let description = schema.get("description") let properties = schema.get("properties") let additionalProperties = schema.get("additionalProperties") @@ -99,6 +101,30 @@ export default class ObjectModel extends Component { ) }).toArray() } + { + // empty row befor extensions... + !showExtensions ? null :   + } + { + !showExtensions ? null : + schema.entrySeq().map( + ([key, value]) => { + if(key.slice(0,2) !== "x-") { + return + } + + const normalizedValue = !value ? null : value.toJS ? value.toJS() : value + + return ( + + { key } + + + { JSON.stringify(normalizedValue) } + + ) + }).toArray() + } { !additionalProperties || !additionalProperties.size ? null : diff --git a/src/style/_table.scss b/src/style/_table.scss index 3cbcc81f..221da52c 100644 --- a/src/style/_table.scss +++ b/src/style/_table.scss @@ -19,7 +19,7 @@ table &:first-of-type { - width: 124px; + width: 174px; padding: 0 0 0 2em; } }