object model should also show example of schema in info below closing bracket (#6453)

This commit is contained in:
Mahtis Michel
2020-10-02 23:15:55 +02:00
committed by GitHub
parent 605b4f8426
commit a920357c22

View File

@@ -42,7 +42,7 @@ export default class ObjectModel extends Component {
let title = schema.get("title") || displayName || name
let requiredProperties = schema.get("required")
let infoProperties = schema
.filter( ( v, key) => ["maxProperties", "minProperties", "nullable"].indexOf(key) !== -1 )
.filter( ( v, key) => ["maxProperties", "minProperties", "nullable", "example"].indexOf(key) !== -1 )
let deprecated = schema.get("deprecated")
const JumpToPath = getComponent("JumpToPath", true)