Skip to content

Commit 9f72e07

Browse files
committed
Remove maxLength constraints from string fields across OpenAPI specs
- Eliminated `maxLength: 50` constraints from multiple string fields in `dataset.yaml`, `workspace.yaml`, `organization.yaml`, and `solution.yaml`.
1 parent 962f468 commit 9f72e07

File tree

5 files changed

+1
-29
lines changed

5 files changed

+1
-29
lines changed

api/src/integrationTest/kotlin/com/cosmotech/api/home/organization/OrganizationConstants.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ object OrganizationConstants {
3030

3131
object Errors {
3232
val emptyNameOrganizationCreationRequestError =
33-
"""{"type":"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400","title":"Bad Request","status":400,"detail":"name: size must be between 1 and 50","instance":"/organizations"}"""
33+
"""{"type":"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400","title":"Bad Request","status":400,"detail":"name: size must be between 1 and 2147483647","instance":"/organizations"}"""
3434
}
3535
}

dataset/src/main/openapi/dataset.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,6 @@ components:
777777
type: string
778778
x-field-extra-annotation: "@com.redis.om.spring.annotations.Searchable"
779779
minLength: 1
780-
maxLength: 50
781780
description:
782781
type: string
783782
organizationId:
@@ -834,7 +833,6 @@ components:
834833
name:
835834
type: string
836835
minLength: 1
837-
maxLength: 50
838836
description:
839837
type: string
840838
tags:
@@ -863,7 +861,6 @@ components:
863861
name:
864862
type: string
865863
minLength: 1
866-
maxLength: 50
867864
description:
868865
type: string
869866
tags:
@@ -895,7 +892,6 @@ components:
895892
type: string
896893
x-field-extra-annotation: "@com.redis.om.spring.annotations.Searchable"
897894
minLength: 1
898-
maxLength: 50
899895
sourceName:
900896
type: string
901897
description: the source data name (e.g. filename associated to the dataset part)
@@ -955,7 +951,6 @@ components:
955951
name:
956952
type: string
957953
minLength: 1
958-
maxLength: 50
959954
sourceName:
960955
description: the source data name (e.g. filename associated to the dataset part)
961956
type: string

organization/src/main/openapi/organization.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,6 @@ components:
548548
x-field-extra-annotation: "@com.redis.om.spring.annotations.Searchable"
549549
description: The Organization name
550550
minLength: 1
551-
maxLength: 50
552551
security:
553552
$ref: '#/components/schemas/OrganizationSecurity'
554553
required:
@@ -562,7 +561,6 @@ components:
562561
type: string
563562
description: The Organization name
564563
minLength: 1
565-
maxLength: 50
566564

567565
# Security Operation Schemas
568566
OrganizationSecurity:

solution/src/main/openapi/solution.yaml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -831,14 +831,12 @@ components:
831831
type: string
832832
description: The Solution key which groups Solution versions
833833
minLength: 1
834-
maxLength: 50
835834
example: "brewery-solution"
836835
name:
837836
type: string
838837
x-field-extra-annotation: "@com.redis.om.spring.annotations.Searchable"
839838
description: The Solution name
840839
minLength: 1
841-
maxLength: 50
842840
example: "Brewery Solution"
843841
description:
844842
type: string
@@ -923,13 +921,11 @@ components:
923921
type: string
924922
description: Technical key for resource name convention and version grouping. Must be unique
925923
minLength: 1
926-
maxLength: 50
927924
example: "brewery-solution"
928925
name:
929926
type: string
930927
description: Solution name. This name is displayed in the sample webApp
931928
minLength: 1
932-
maxLength: 50
933929
example: "Brewery Solution"
934930
description:
935931
type: string
@@ -993,13 +989,11 @@ components:
993989
type: string
994990
description: Technical key for resource name convention and version grouping. Must be unique
995991
minLength: 1
996-
maxLength: 50
997992
example: "brewery-solution"
998993
name:
999994
type: string
1000995
description: The Solution name
1001996
minLength: 1
1002-
maxLength: 50
1003997
example: "Brewery Solution"
1004998
description:
1005999
type: string
@@ -1101,13 +1095,11 @@ components:
11011095
type: string
11021096
description: The Solution Run Template id
11031097
minLength: 1
1104-
maxLength: 50
11051098
example: "template-123"
11061099
name:
11071100
type: string
11081101
description: The Run Template name
11091102
minLength: 1
1110-
maxLength: 50
11111103
labels:
11121104
$ref: '#/components/schemas/TranslatedLabels'
11131105
description:
@@ -1144,13 +1136,11 @@ components:
11441136
type: string
11451137
description: The Solution Run Template id
11461138
minLength: 1
1147-
maxLength: 50
11481139
example: "template-123"
11491140
name:
11501141
type: string
11511142
description: The Run Template name
11521143
minLength: 1
1153-
maxLength: 50
11541144
labels:
11551145
$ref: '#/components/schemas/TranslatedLabels'
11561146
description:
@@ -1187,7 +1177,6 @@ components:
11871177
type: string
11881178
description: The Run Template name
11891179
minLength: 1
1190-
maxLength: 50
11911180
labels:
11921181
$ref: '#/components/schemas/TranslatedLabels'
11931182
description:
@@ -1247,7 +1236,6 @@ components:
12471236
type: string
12481237
description: The Parameter Group id
12491238
minLength: 1
1250-
maxLength: 50
12511239
description:
12521240
type: string
12531241
description: A description of the parameter group
@@ -1275,7 +1263,6 @@ components:
12751263
type: string
12761264
description: The Parameter Group id
12771265
minLength: 1
1278-
maxLength: 50
12791266
description:
12801267
type: string
12811268
description: A description of the parameter group
@@ -1324,7 +1311,6 @@ components:
13241311
type: string
13251312
description: The Parameter id
13261313
minLength: 1
1327-
maxLength: 50
13281314
description:
13291315
type: string
13301316
description: The parameter description
@@ -1359,7 +1345,6 @@ components:
13591345
type: string
13601346
description: The Parameter id
13611347
minLength: 1
1362-
maxLength: 50
13631348
description:
13641349
type: string
13651350
description: The parameter description

workspace/src/main/openapi/workspace.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -707,14 +707,12 @@ components:
707707
type: string
708708
description: Technical key for resource name convention and version grouping. Must be unique
709709
minLength: 1
710-
maxLength: 50
711710
example: "MyKey"
712711
name:
713712
type: string
714713
x-field-extra-annotation: "@com.redis.om.spring.annotations.Searchable"
715714
description: Workspace name. This name is display in the sample webApp
716715
minLength: 1
717-
maxLength: 50
718716
example: "FranceOffice"
719717
description:
720718
type: string
@@ -770,13 +768,11 @@ components:
770768
type: string
771769
description: Technical key for resource name convention and version grouping. Must be unique
772770
minLength: 1
773-
maxLength: 50
774771
name:
775772
type: string
776773
description: Workspace name. This name is displayed in the sample webApp
777774
example: "FranceOffice"
778775
minLength: 1
779-
maxLength: 50
780776
description:
781777
type: string
782778
description: The Workspace description
@@ -814,12 +810,10 @@ components:
814810
type: string
815811
description: Technical key for resource name convention and version grouping. Must be unique
816812
minLength: 1
817-
maxLength: 50
818813
name:
819814
type: string
820815
description: Workspace name
821816
minLength: 1
822-
maxLength: 50
823817
description:
824818
type: string
825819
description: The Workspace description

0 commit comments

Comments
 (0)