MOAR rendering (improve media type detection; render object model
nullables)
This commit is contained in:
@@ -34,9 +34,10 @@ class ObjectModel extends Component {
|
||||
|
||||
render(){
|
||||
let { schema, name, isRef, getComponent, depth, deprecated, ...props } = this.props
|
||||
let { expandDepth } = this.props
|
||||
let { expandDepth, specSelectors } = this.props
|
||||
const JumpToPath = getComponent("JumpToPath", true)
|
||||
let description = schema.get("description")
|
||||
let nullable = schema.get("nullable")
|
||||
let properties = schema.get("properties")
|
||||
let additionalProperties = schema.get("additionalProperties")
|
||||
let title = schema.get("title") || name
|
||||
@@ -70,6 +71,12 @@ class ObjectModel extends Component {
|
||||
<td>{ description }</td>
|
||||
</tr>
|
||||
}
|
||||
{
|
||||
(!specSelectors.isOAS3() || !nullable) ? null : <tr style={{ color: "#999", fontStyle: "italic" }}>
|
||||
<td>nullable</td>
|
||||
<td>{ nullable }</td>
|
||||
</tr>
|
||||
}
|
||||
{
|
||||
!(properties && properties.size) ? null : properties.entrySeq().map(
|
||||
([key, value]) => {
|
||||
|
||||
Reference in New Issue
Block a user