Skip to content

Commit

Permalink
fix: incorrect validation for passport
Browse files Browse the repository at this point in the history
  • Loading branch information
kirinnee committed Jul 13, 2024
1 parent b576a88 commit 3081ce7
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 13 deletions.
3 changes: 2 additions & 1 deletion App/Modules/Passengers/API/V1/PassengerValidator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ public CreatePassengerReqValidator()
.Matches("^[a-zA-Z @./',-`*]+$");
this.RuleFor(x => x.PassportNumber)
.NotNull()
.MaximumLength(64);
.MaximumLength(64)
.Matches("^([a-zA-Z0-9]+)$");
this.RuleFor(x => x.PassportExpiry)
.NotNull()
.DateValid();
Expand Down
12 changes: 6 additions & 6 deletions infra/root_chart/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ dependencies:
version: 12.10.4
- name: dragonfly
repository: oci://ghcr.io/dragonflydb/dragonfly/helm
version: v1.13.0
- name: redis
repository: oci://registry-1.docker.io/bitnamicharts
version: 18.6.1
digest: sha256:b6e5571929690cb2b1bdc1a16586fcdf79eefd52b0ff5abe6d6f64361f907028
generated: "2024-01-02T13:57:32.972562+08:00"
version: v1.19.0
- name: dragonfly
repository: oci://ghcr.io/dragonflydb/dragonfly/helm
version: v1.19.0
digest: sha256:b96dc855ad6ef84e019f0380d5834c957a856c310807ba4a28ae7fa3a5e08272
generated: "2024-06-27T07:38:52.607884-07:00"
8 changes: 4 additions & 4 deletions infra/root_chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ dependencies:
condition: mainstorage.enable
- name: dragonfly
repository: oci://ghcr.io/dragonflydb/dragonfly/helm
version: v1.13.0
version: v1.19.0
alias: maincache
condition: maincache.enable
- name: redis
repository: oci://registry-1.docker.io/bitnamicharts
version: 18.6.1
- name: dragonfly
repository: oci://ghcr.io/dragonflydb/dragonfly/helm
version: v1.19.0
alias: streamcache
condition: streamcache.enable
4 changes: 2 additions & 2 deletions infra/root_chart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ Root Chart to a single Service
| file://../api_chart | api(dotnet-chart) | 0.1.0 |
| file://../migration_chart | migration(dotnet-migration) | 0.1.0 |
| oci://ghcr.io/atomicloud/sulfoxide.bromine | bromine(sulfoxide-bromine) | 1.3.0 |
| oci://ghcr.io/dragonflydb/dragonfly/helm | maincache(dragonfly) | v1.13.0 |
| oci://ghcr.io/dragonflydb/dragonfly/helm | maincache(dragonfly) | v1.19.0 |
| oci://ghcr.io/dragonflydb/dragonfly/helm | streamcache(dragonfly) | v1.19.0 |
| oci://registry-1.docker.io/bitnamicharts | mainstorage(minio) | 12.10.4 |
| oci://registry-1.docker.io/bitnamicharts | maindb(postgresql) | 13.2.24 |
| oci://registry-1.docker.io/bitnamicharts | streamcache(redis) | 18.6.1 |

## Values

Expand Down
7 changes: 7 additions & 0 deletions infra/root_chart/values.lapras.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ maincache:
streamcache:
enable: true
fullnameOverride: "zinc-streamcache"
resources:
requests:
memory: "256Mi"
cpu: "100m"
limits:
memory: "512Mi"
cpu: "250m"

mainstorage:
enable: true
Expand Down

0 comments on commit 3081ce7

Please sign in to comment.