Skip to content

Commit

Permalink
Favor the string method defined in the schema
Browse files Browse the repository at this point in the history
  • Loading branch information
kddejong committed Jul 4, 2024
1 parent 7ba42e8 commit 731f5cd
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@
"properties": {
"Cpu": {
"enum": [
256
"256"
]
},
"Memory": {
"enum": [
512,
1024,
2048
"512",
"1024",
"2048"
]
}
}
Expand All @@ -51,7 +51,7 @@
"properties": {
"Cpu": {
"enum": [
512
"512"
]
},
"Memory": {
Expand All @@ -65,7 +65,7 @@
"properties": {
"Cpu": {
"enum": [
1024
"1024"
]
},
"Memory": {
Expand All @@ -79,7 +79,7 @@
"properties": {
"Cpu": {
"enum": [
2048
"2048"
]
},
"Memory": {
Expand All @@ -93,7 +93,7 @@
"properties": {
"Cpu": {
"enum": [
4096
"4096"
]
},
"Memory": {
Expand All @@ -107,7 +107,7 @@
"properties": {
"Cpu": {
"enum": [
8192
"8192"
]
},
"Memory": {
Expand All @@ -121,7 +121,7 @@
"properties": {
"Cpu": {
"enum": [
16384
"16384"
]
},
"Memory": {
Expand All @@ -131,19 +131,6 @@
}
}
}
],
"properties": {
"Cpu": {
"enum": [
256,
512,
1024,
2048,
4096,
8192,
16384
]
}
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@
"properties": {
"Cpu": {
"enum": [
256,
512,
1024,
2048,
4096,
8192,
16384
"256",
"512",
"1024",
"2048",
"4096",
"8192",
"16384"
]
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@ def rule():
},
[
ValidationError(
"128 is not one of [256, 512, 1024, 2048, 4096, 8192, 16384]",
(
"128 is not one of ['256', '512', '1024', "
"'2048', '4096', '8192', '16384']"
),
rule=TaskFargateProperties(),
path=deque(["Cpu"]),
validator="enum",
Expand Down

0 comments on commit 731f5cd

Please sign in to comment.