File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ export interface Draft07Definition {
15
15
16
16
export interface Draft07DefinitionProperty {
17
17
type ?: string // missing type means any
18
+ items ?: Draft07DefinitionProperty
18
19
properties ?: Record < string , Draft07DefinitionProperty >
19
20
required ?: string [ ]
20
21
default ?: unknown
Original file line number Diff line number Diff line change @@ -106,6 +106,10 @@ export function detectSchemaVendor(schema: ContentStandardSchemaV1) {
106
106
}
107
107
108
108
export function replaceComponentSchemas < T = Draft07Definition | Draft07DefinitionProperty > ( property : T ) : T {
109
+ if ( ( property as Draft07DefinitionProperty ) . type === 'array' ) {
110
+ ( property as Draft07DefinitionProperty ) . items = replaceComponentSchemas ( ( property as Draft07DefinitionProperty ) . items as Draft07DefinitionProperty ) as Draft07DefinitionProperty
111
+ }
112
+
109
113
if ( ( property as Draft07DefinitionProperty ) . type !== 'object' ) {
110
114
return property
111
115
}
You can’t perform that action at this time.
0 commit comments