File tree 1 file changed +3
-3
lines changed
packages/angular_devkit/core/src/json/schema
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ export function getTypesOfSchema(schema: JsonSchema): Set<string> {
59
59
if ( Array . isArray ( schema . allOf ) ) {
60
60
for ( const sub of schema . allOf ) {
61
61
const types = getTypesOfSchema ( sub as JsonObject ) ;
62
- potentials = new Set ( [ ...potentials ] . filter ( p => types . has ( p ) ) ) ;
62
+ potentials = new Set ( [ ...types ] . filter ( t => potentials . has ( t ) ) ) ;
63
63
}
64
64
}
65
65
@@ -69,7 +69,7 @@ export function getTypesOfSchema(schema: JsonSchema): Set<string> {
69
69
const types = getTypesOfSchema ( sub as JsonObject ) ;
70
70
options = new Set ( [ ...options , ...types ] ) ;
71
71
}
72
- potentials = new Set ( [ ...potentials ] . filter ( p => options . has ( p ) ) ) ;
72
+ potentials = new Set ( [ ...options ] . filter ( o => potentials . has ( o ) ) ) ;
73
73
}
74
74
75
75
if ( Array . isArray ( schema . anyOf ) ) {
@@ -78,7 +78,7 @@ export function getTypesOfSchema(schema: JsonSchema): Set<string> {
78
78
const types = getTypesOfSchema ( sub as JsonObject ) ;
79
79
options = new Set ( [ ...options , ...types ] ) ;
80
80
}
81
- potentials = new Set ( [ ...potentials ] . filter ( p => options . has ( p ) ) ) ;
81
+ potentials = new Set ( [ ...options ] . filter ( o => potentials . has ( o ) ) ) ;
82
82
}
83
83
84
84
if ( schema . properties ) {
You can’t perform that action at this time.
0 commit comments