Generated-output differences

quicktype output changed between the PR base and tested PR merge revisions.
← Back to the pull request
5test cases
5files differ
5modified
0new
0deleted
20changed lines
+20 −0insertions / deletions
Base 7cc8d8a58955a00fa24b69cb53f71f3a32fc4f5e · PR merge 8aa9e717a266a72a9a87ab591d4087e945f98df8 · Head b76807fc64a757dc6cd4016dc4f6550fb35f3aaa · raw patch
Test case

test/inputs/schema/minmaxlength.schema

1 generated file · +10 −0
Mschema-objective-cdefault / QTTopLevel.m+10 −0
@@ -83,6 +83,16 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
8383 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
8484 {
8585 if (self = [super init]) {
86+ if (dict[@"intersection"] && [dict[@"intersection"] length] < 4) return nil;
87+ if ([dict[@"intersection"] length] > 5) return nil;
88+ if ([dict[@"maxlength"] length] > 5) return nil;
89+ if (dict[@"minlength"] && [dict[@"minlength"] length] < 3) return nil;
90+ if (dict[@"minMaxIntersection"] && [dict[@"minMaxIntersection"] length] < 3) return nil;
91+ if ([dict[@"minMaxIntersection"] length] > 5) return nil;
92+ if (dict[@"minmaxlength"] && [dict[@"minmaxlength"] length] < 3) return nil;
93+ if ([dict[@"minmaxlength"] length] > 5) return nil;
94+ if (dict[@"union"] && [dict[@"union"] length] < 3) return nil;
95+ if ([dict[@"union"] length] > 6) return nil;
8696 [self setValuesForKeysWithDictionary:dict];
8797 }
8898 return self;
Test case

test/inputs/schema/optional-const-ref.schema

1 generated file · +4 −0
Mschema-objective-cdefault / QTTopLevel.m+4 −0
@@ -99,7 +99,11 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
9999 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
100100 {
101101 if (self = [super init]) {
102+ if (dict[@"label"] && [dict[@"label"] length] < 2) return nil;
103+ if ([dict[@"label"] length] > 16) return nil;
102104 if (![dict[@"requiredCoordinates"] isKindOfClass:NSArray.class]) return nil;
105+ if (dict[@"requiredLabel"] && [dict[@"requiredLabel"] length] < 2) return nil;
106+ if ([dict[@"requiredLabel"] length] > 16) return nil;
103107 [self setValuesForKeysWithDictionary:dict];
104108 _coordinates = map(_coordinates, λ(id x, [QTCoordinate fromJSONDictionary:x]));
105109 _requiredCoordinates = map(_requiredCoordinates, λ(id x, [QTCoordinate fromJSONDictionary:x]));
Test case

test/inputs/schema/optional-constraints.schema

1 generated file · +2 −0
Mschema-objective-cdefault / QTTopLevel.m+2 −0
@@ -80,6 +80,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
8080 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
8181 {
8282 if (self = [super init]) {
83+ if (dict[@"optString"] && [dict[@"optString"] length] < 3) return nil;
84+ if ([dict[@"optString"] length] > 10) return nil;
8385 [self setValuesForKeysWithDictionary:dict];
8486 }
8587 return self;
Test case

test/inputs/schema/renaming-bug.schema

1 generated file · +2 −0
Mschema-objective-cdefault / QTTopLevel.m+2 −0
@@ -341,6 +341,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
341341 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
342342 {
343343 if (self = [super init]) {
344+ if (dict[@"name"] && [dict[@"name"] length] < 1) return nil;
344345 [self setValuesForKeysWithDictionary:dict];
345346 _color = [QTColor fromJSONDictionary:(id)_color];
346347 _shapes = map(_shapes, λ(id x, [QTShape fromJSONDictionary:x]));
@@ -704,6 +705,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
704705 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
705706 {
706707 if (self = [super init]) {
708+ if (dict[@"id"] && [dict[@"id"] length] < 1) return nil;
707709 [self setValuesForKeysWithDictionary:dict];
708710 _speed = [QTSpeed fromJSONDictionary:(id)_speed];
709711 _type = [QTVehicleType fromJSONDictionary:(id)_type];
Test case

test/inputs/schema/schema-constraints.schema

1 generated file · +2 −0
Mschema-objective-cdefault / QTTopLevel.m+2 −0
@@ -77,6 +77,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
7777 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
7878 {
7979 if (self = [super init]) {
80+ if (dict[@"minMaxLength"] && [dict[@"minMaxLength"] length] < 5) return nil;
81+ if ([dict[@"minMaxLength"] length] > 5) return nil;
8082 [self setValuesForKeysWithDictionary:dict];
8183 }
8284 return self;
No generated files match these filters.