mirror of
https://github.com/Redocly/redoc.git
synced 2025-01-30 17:44:07 +03:00
minor code improvement
This commit is contained in:
parent
2eabd2b333
commit
3b5cd1068b
|
@ -2,6 +2,7 @@
|
|||
|
||||
import {RedocComponent, BaseComponent} from '../base';
|
||||
import {ElementRef} from 'angular2/angular2';
|
||||
import JsonPointer from '../../utils/JsonPointer';
|
||||
|
||||
@RedocComponent({
|
||||
selector: 'json-schema',
|
||||
|
@ -83,7 +84,7 @@ export default class JsonSchema extends BaseComponent {
|
|||
let itemFormat = propData.items.format;
|
||||
if (itemType === 'object') {
|
||||
itemType = propData.items.title || 'object';
|
||||
propData._pointer = propData.items._pointer || this.pointer + '/properties/' + prop + '/items';
|
||||
propData._pointer = propData.items._pointer || JsonPointer.join(this.pointer, ['properties', prop, 'items']);
|
||||
}
|
||||
propData._displayType = `array of ${itemType}`;
|
||||
propData.format = itemFormat;
|
||||
|
|
Loading…
Reference in New Issue
Block a user