diff --git a/base/schema-objective-c/test/inputs/schema/minmaxlength.schema/default/QTTopLevel.m b/head/schema-objective-c/test/inputs/schema/minmaxlength.schema/default/QTTopLevel.m
index 03435ed..af6920c 100644
--- a/base/schema-objective-c/test/inputs/schema/minmaxlength.schema/default/QTTopLevel.m
+++ b/head/schema-objective-c/test/inputs/schema/minmaxlength.schema/default/QTTopLevel.m
@@ -83,6 +83,16 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
 {
     if (self = [super init]) {
+        if (dict[@"intersection"] && [dict[@"intersection"] length] < 4) return nil;
+        if ([dict[@"intersection"] length] > 5) return nil;
+        if ([dict[@"maxlength"] length] > 5) return nil;
+        if (dict[@"minlength"] && [dict[@"minlength"] length] < 3) return nil;
+        if (dict[@"minMaxIntersection"] && [dict[@"minMaxIntersection"] length] < 3) return nil;
+        if ([dict[@"minMaxIntersection"] length] > 5) return nil;
+        if (dict[@"minmaxlength"] && [dict[@"minmaxlength"] length] < 3) return nil;
+        if ([dict[@"minmaxlength"] length] > 5) return nil;
+        if (dict[@"union"] && [dict[@"union"] length] < 3) return nil;
+        if ([dict[@"union"] length] > 6) return nil;
         [self setValuesForKeysWithDictionary:dict];
     }
     return self;
diff --git a/base/schema-objective-c/test/inputs/schema/optional-const-ref.schema/default/QTTopLevel.m b/head/schema-objective-c/test/inputs/schema/optional-const-ref.schema/default/QTTopLevel.m
index 86f9b68..ff0428a 100644
--- a/base/schema-objective-c/test/inputs/schema/optional-const-ref.schema/default/QTTopLevel.m
+++ b/head/schema-objective-c/test/inputs/schema/optional-const-ref.schema/default/QTTopLevel.m
@@ -99,7 +99,11 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
 {
     if (self = [super init]) {
+        if (dict[@"label"] && [dict[@"label"] length] < 2) return nil;
+        if ([dict[@"label"] length] > 16) return nil;
         if (![dict[@"requiredCoordinates"] isKindOfClass:NSArray.class]) return nil;
+        if (dict[@"requiredLabel"] && [dict[@"requiredLabel"] length] < 2) return nil;
+        if ([dict[@"requiredLabel"] length] > 16) return nil;
         [self setValuesForKeysWithDictionary:dict];
         _coordinates = map(_coordinates, λ(id x, [QTCoordinate fromJSONDictionary:x]));
         _requiredCoordinates = map(_requiredCoordinates, λ(id x, [QTCoordinate fromJSONDictionary:x]));
diff --git a/base/schema-objective-c/test/inputs/schema/optional-constraints.schema/default/QTTopLevel.m b/head/schema-objective-c/test/inputs/schema/optional-constraints.schema/default/QTTopLevel.m
index e8d13f7..d66ead4 100644
--- a/base/schema-objective-c/test/inputs/schema/optional-constraints.schema/default/QTTopLevel.m
+++ b/head/schema-objective-c/test/inputs/schema/optional-constraints.schema/default/QTTopLevel.m
@@ -80,6 +80,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
 {
     if (self = [super init]) {
+        if (dict[@"optString"] && [dict[@"optString"] length] < 3) return nil;
+        if ([dict[@"optString"] length] > 10) return nil;
         [self setValuesForKeysWithDictionary:dict];
     }
     return self;
diff --git a/base/schema-objective-c/test/inputs/schema/renaming-bug.schema/default/QTTopLevel.m b/head/schema-objective-c/test/inputs/schema/renaming-bug.schema/default/QTTopLevel.m
index bb7ba51..56f753a 100644
--- a/base/schema-objective-c/test/inputs/schema/renaming-bug.schema/default/QTTopLevel.m
+++ b/head/schema-objective-c/test/inputs/schema/renaming-bug.schema/default/QTTopLevel.m
@@ -341,6 +341,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
 {
     if (self = [super init]) {
+        if (dict[@"name"] && [dict[@"name"] length] < 1) return nil;
         [self setValuesForKeysWithDictionary:dict];
         _color = [QTColor fromJSONDictionary:(id)_color];
         _shapes = map(_shapes, λ(id x, [QTShape fromJSONDictionary:x]));
@@ -704,6 +705,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
 {
     if (self = [super init]) {
+        if (dict[@"id"] && [dict[@"id"] length] < 1) return nil;
         [self setValuesForKeysWithDictionary:dict];
         _speed = [QTSpeed fromJSONDictionary:(id)_speed];
         _type = [QTVehicleType fromJSONDictionary:(id)_type];
diff --git a/base/schema-objective-c/test/inputs/schema/schema-constraints.schema/default/QTTopLevel.m b/head/schema-objective-c/test/inputs/schema/schema-constraints.schema/default/QTTopLevel.m
index 3a686fa..9ebe7e4 100644
--- a/base/schema-objective-c/test/inputs/schema/schema-constraints.schema/default/QTTopLevel.m
+++ b/head/schema-objective-c/test/inputs/schema/schema-constraints.schema/default/QTTopLevel.m
@@ -77,6 +77,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
 {
     if (self = [super init]) {
+        if (dict[@"minMaxLength"] && [dict[@"minMaxLength"] length] < 5) return nil;
+        if ([dict[@"minMaxLength"] length] > 5) return nil;
         [self setValuesForKeysWithDictionary:dict];
     }
     return self;
