Generated-output differences

quicktype output changed between the PR base and tested PR merge revisions.
← Back to the pull request
2test cases
2files differ
2modified
0new
0deleted
11changed lines
+11 −0insertions / deletions
Base 1824a2856c8e527dec01320c8b65c0b85a447532 · PR merge 2c21ce5be0fe02ec0f258c7296995ac08adf65bb · Head 7abe0de32952b61a9a26dd2b947f58956aef013a · raw patch
Test case

test/inputs/schema/min-max-items.schema

1 generated file · +5 −0
Mschema-objective-cdefault / QTTopLevel.m+5 −0
@@ -92,10 +92,15 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
9292 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
9393 {
9494 if (self = [super init]) {
95+ if ([(NSArray *)dict[@"maxOnly"] count] > 3) return nil;
9596 if (![dict[@"maxOnly"] isKindOfClass:NSArray.class]) return nil;
97+ if (dict[@"minAndMax"] && [(NSArray *)dict[@"minAndMax"] count] < 1) return nil;
98+ if ([(NSArray *)dict[@"minAndMax"] count] > 4) return nil;
9699 if (![dict[@"minAndMax"] isKindOfClass:NSArray.class]) return nil;
100+ if (dict[@"minOnly"] && [(NSArray *)dict[@"minOnly"] count] < 2) return nil;
97101 if (![dict[@"minOnly"] isKindOfClass:NSArray.class]) return nil;
98102 if (![dict[@"plain"] isKindOfClass:NSArray.class]) return nil;
103+ if (dict[@"unionItems"] && [(NSArray *)dict[@"unionItems"] count] < 2) return nil;
99104 if (![dict[@"unionItems"] isKindOfClass:NSArray.class]) return nil;
100105 [self setValuesForKeysWithDictionary:dict];
101106 }
Test case

test/inputs/schema/vega-lite.schema

1 generated file · +6 −0
Mschema-objective-cdefault / QTTopLevel.m+6 −0
@@ -3778,7 +3778,11 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
37783778 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
37793779 {
37803780 if (self = [super init]) {
3781+ if (dict[@"divide"] && [(NSArray *)dict[@"divide"] count] < 1) return nil;
3782+ if (dict[@"extent"] && [(NSArray *)dict[@"extent"] count] < 2) return nil;
3783+ if ([(NSArray *)dict[@"extent"] count] > 2) return nil;
37813784 if (dict[@"maxbins"] && [dict[@"maxbins"] doubleValue] < 2) return nil;
3785+ if (dict[@"steps"] && [(NSArray *)dict[@"steps"] count] < 1) return nil;
37823786 [self setValuesForKeysWithDictionary:dict];
37833787 }
37843788 return self;
@@ -3911,6 +3915,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
39113915 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
39123916 {
39133917 if (self = [super init]) {
3918+ if (dict[@"range"] && [(NSArray *)dict[@"range"] count] < 2) return nil;
3919+ if ([(NSArray *)dict[@"range"] count] > 2) return nil;
39143920 [self setValuesForKeysWithDictionary:dict];
39153921 _timeUnit = [QTTimeUnit withValue:(id)_timeUnit];
39163922 if (_timeUnit == nil && dict[@"timeUnit"] && ![dict[@"timeUnit"] isKindOfClass:NSNull.class]) return nil;
No generated files match these filters.