Skip to content

Commit 18cd7a4

Browse files
committed
N3 update openapi
1 parent 906f282 commit 18cd7a4

2 files changed

Lines changed: 66 additions & 57 deletions

File tree

docs/openapi.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -509,10 +509,6 @@ components:
509509
message:
510510
type: string
511511
description: Human-readable error message
512-
details:
513-
type: object
514-
description: Additional error details (e.g., validation errors)
515-
additionalProperties: true
516512

517513
responses:
518514
BadRequest:
@@ -543,9 +539,6 @@ components:
543539
error:
544540
code: "VALIDATION_ERROR"
545541
message: "Input validation failed"
546-
details:
547-
contactTypePreferences:
548-
- "Field required"
549542

550543
Unauthorized:
551544
description: Authentication failed - invalid or missing JWT token

user-fridge-notification-service/samconfig.toml

Lines changed: 66 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,93 +1,109 @@
11
# samconfig.toml - SAM CLI configuration for guided and non-interactive deploys
22
# Replace the placeholder values (Hosted Zone ID, region, stack_name, etc.)
3-
# Usage: `sam deploy --config-file samconfig.toml --config-env default`
3+
# Usage: `sam deploy --config-file samconfig.toml --config-env dev`
44

55
version = 0.1
66

7-
[default]
8-
# Global settings that apply to all environments
9-
s3_prefix = "cfm-notification/dev"
10-
#stack_name = "cfm-notification-dev"
7+
# =============================================================================
8+
# Development Environment
9+
# Usage: sam deploy --config-env dev
10+
# =============================================================================
1111

12+
[dev.validate.parameters]
13+
lint = true
1214

13-
[default.package]
14-
[default.package.parameters]
15+
[dev.build.parameters]
16+
cached = true
17+
parallel = true
1518

16-
[default.deploy]
17-
[default.deploy.parameters]
18-
# Region to deploy to
19+
[dev.deploy]
20+
[dev.deploy.parameters]
1921
region = "us-east-1"
20-
# IAM capability; use CAPABILITY_NAMED_IAM if your template creates named roles
22+
s3_bucket = "cfm-sam-artifacts"
23+
s3_prefix = "user-fridge-notification-service/dev"
2124
capabilities = "CAPABILITY_NAMED_IAM"
22-
# Whether to prompt for changeset confirmation
2325
confirm_changeset = true
24-
# Useful to avoid failing when there are no changes
2526
no_fail_on_empty_changeset = false
26-
stack_name = "cfm-notification-dev"
27-
resolve_s3 = true
28-
29-
# Template parameters defined in your template.yaml
27+
stack_name = "user-fridge-notification-service-dev"
3028
parameter_overrides = [
31-
"Environment=aws",
32-
"Stage=dev",
33-
"CFMHostedZoneId=Z03114523DQKTV4IMEMPR",
34-
"FirebaseProjectId=your-firebase-project-id" # Replace with your actual Firebase Project ID
29+
"DeploymentTarget=aws",
30+
"Environment=dev",
31+
"CFMHostedZoneId=<REPLACE_ME>",
32+
"FirebaseProjectId=<REPLACE_ME>" # Replace with your actual Firebase Project ID
3533
]
3634

37-
tags = "project=FridgeFinder service=notifications"
35+
tags = [
36+
"project=CFM",
37+
"service=user-fridge-notification",
38+
"env=dev"
39+
]
3840

3941

40-
###########################
41-
# Staging environment
42-
###########################
42+
# =============================================================================
43+
# Staging Environment
44+
# Usage: sam deploy --config-env staging
45+
# =============================================================================
4346

44-
[staging]
45-
s3_prefix = "cfm-notification/staging"
46-
#stack_name = "cfm-notification-staging"
47+
[staging.validate.parameters]
48+
lint = true
4749

48-
[staging.package]
49-
[staging.package.parameters]
50+
[staging.build.parameters]
51+
cached = true
52+
parallel = true
5053

5154
[staging.deploy]
5255
[staging.deploy.parameters]
5356
region = "us-east-1"
57+
s3_bucket = "cfm-sam-artifacts"
58+
s3_prefix = "user-fridge-notification-service/staging"
5459
capabilities = "CAPABILITY_NAMED_IAM"
5560
confirm_changeset = true
5661
no_fail_on_empty_changeset = false
57-
stack_name = "cfm-notification-staging"
58-
resolve_s3 = true
62+
stack_name = "user-fridge-notification-service-staging"
5963
parameter_overrides = [
60-
"Environment=aws",
61-
"Stage=staging",
64+
"DeploymentTarget=aws",
65+
"Environment=staging",
6266
"CFMHostedZoneId=<REPLACE_ME>",
63-
"FirebaseProjectId=your-firebase-project-id" # Replace with your actual Firebase Project ID
67+
"FirebaseProjectId=<REPLACE_ME>" # Replace with your actual Firebase Project ID
6468
]
65-
tags = "project=FridgeFinder service=notifications env=staging"
6669

70+
tags = [
71+
"project=FridgeFinder",
72+
"service=notifications",
73+
"env=staging"
74+
]
6775

68-
###########################
69-
# Production environment
70-
###########################
7176

72-
[prod]
73-
s3_prefix = "cfm-notification/prod"
74-
#stack_name = "cfm-notification-prod"
77+
# =============================================================================
78+
# Production Environment
79+
# Usage: sam deploy --config-env prod
80+
# =============================================================================
7581

76-
[prod.package]
77-
[prod.package.parameters]
82+
[prod.validate.parameters]
83+
lint = true
84+
85+
[prod.build.parameters]
86+
cached = true
87+
parallel = true
7888

7989
[prod.deploy]
8090
[prod.deploy.parameters]
8191
region = "us-east-1"
92+
s3_bucket = "cfm-sam-artifacts"
93+
s3_prefix = "user-fridge-notification-service/prod"
8294
capabilities = "CAPABILITY_NAMED_IAM"
8395
confirm_changeset = true
8496
no_fail_on_empty_changeset = false
85-
stack_name = "cfm-notification-prod"
86-
resolve_s3 = true
97+
stack_name = "user-fridge-notification-service-prod"
8798
parameter_overrides = [
88-
"Environment=aws",
89-
"Stage=prod",
99+
"DeploymentTarget=aws",
100+
"Environment=prod",
90101
"CFMHostedZoneId=<REPLACE_ME>",
91-
"FirebaseProjectId=your-firebase-project-id" # Replace with your actual Firebase Project ID
102+
"FirebaseProjectId=<REPLACE_ME>" # Replace with your actual Firebase Project ID
103+
]
104+
105+
tags = [
106+
"project=FridgeFinder",
107+
"service=notifications",
108+
"env=prod"
92109
]
93-
tags = "project=FridgeFinder service=notifications env=prod"

0 commit comments

Comments
 (0)