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 7cc8d8a58955a00fa24b69cb53f71f3a32fc4f5e · PR merge d80cfc177a0cb5f9bf4f95518dff37d0a78c4a90 · Head 6d33b609363a1bf337212c7e9fe6cc35dde99d7b · 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
@@ -3656,6 +3656,10 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
36563656 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
36573657 {
36583658 if (self = [super init]) {
3659+ if (dict[@"divide"] && [(NSArray *)dict[@"divide"] count] < 1) return nil;
3660+ if (dict[@"extent"] && [(NSArray *)dict[@"extent"] count] < 2) return nil;
3661+ if ([(NSArray *)dict[@"extent"] count] > 2) return nil;
3662+ if (dict[@"steps"] && [(NSArray *)dict[@"steps"] count] < 1) return nil;
36593663 [self setValuesForKeysWithDictionary:dict];
36603664 }
36613665 return self;
@@ -3788,6 +3792,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
37883792 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
37893793 {
37903794 if (self = [super init]) {
3795+ if (dict[@"range"] && [(NSArray *)dict[@"range"] count] < 2) return nil;
3796+ if ([(NSArray *)dict[@"range"] count] > 2) return nil;
37913797 [self setValuesForKeysWithDictionary:dict];
37923798 _timeUnit = [QTTimeUnit withValue:(id)_timeUnit];
37933799 if (_timeUnit == nil && dict[@"timeUnit"] && ![dict[@"timeUnit"] isKindOfClass:NSNull.class]) return nil;
No generated files match these filters.