diff --git a/src/core/components/headers.jsx b/src/core/components/headers.jsx index a4ba63b5..c3bc563a 100644 --- a/src/core/components/headers.jsx +++ b/src/core/components/headers.jsx @@ -36,10 +36,13 @@ export default class Headers extends React.Component { if(!Im.Map.isMap(header)) { return null } + const type = header.getIn(["schema", "type"]) + const schemaExample = header.getIn(["schema", "example"]) + return ( { key } { header.get( "description" ) } - { header.get( "schema" ).get( "type" ) } { header.get( "schema" ).get( "example" ) ? : null } + { type } { schemaExample ? : null } ) }).toArray() }