Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/workflows/pr-serverless-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,6 @@ jobs:
cache: "npm"
- name: Install dependencies
run: make dev
# NOTE: unit tests are connecting to AWS to instantiate boto3 clients/resources
# once that's discussed we can move unit and infra tests as part of the fast quality standards
# see https://github.com/ran-isenberg/serverless-python-demo/pull/38#discussion_r1299372169
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
with:
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ repos:
exclude: "^(?!helpers/)"
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.3.0
rev: v0.3.4
hooks:
# Run the Ruff linter.
- id: ruff
Expand Down
61 changes: 25 additions & 36 deletions docs/swagger/openapi.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"openapi": "3.0.0",
"openapi": "3.1.0",
"info": {
"title": "AWS Lambda Handler Cookbook - Orders Service",
"version": "1.0.0"
Expand Down Expand Up @@ -29,22 +29,22 @@
"required": true
},
"responses": {
"200": {
"description": "The created order",
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CreateOrderOutput"
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
},
"442": {
"description": "Invalid create order request",
"200": {
"description": "The created order",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/InvalidRestApiRequest"
"$ref": "#/components/schemas/CreateOrderOutput"
}
}
}
Expand Down Expand Up @@ -117,6 +117,19 @@
],
"title": "CreateOrderRequest"
},
"HTTPValidationError": {
"properties": {
"detail": {
"items": {
"$ref": "#/components/schemas/ValidationError"
},
"type": "array",
"title": "Detail"
}
},
"type": "object",
"title": "HTTPValidationError"
},
"InternalServerErrorOutput": {
"properties": {
"error": {
Expand All @@ -129,24 +142,7 @@
"type": "object",
"title": "InternalServerErrorOutput"
},
"InvalidRestApiRequest": {
"properties": {
"details": {
"items": {
"$ref": "#/components/schemas/PydanticError"
},
"type": "array",
"title": "Details",
"description": "Error details"
}
},
"type": "object",
"required": [
"details"
],
"title": "InvalidRestApiRequest"
},
"PydanticError": {
"ValidationError": {
"properties": {
"loc": {
"items": {
Expand All @@ -160,27 +156,20 @@
]
},
"type": "array",
"title": "Loc",
"description": "Error location"
"title": "Location"
},
"type": {
"type": "string",
"title": "Type",
"description": "Error type"
},
"msg": {
"type": "string",
"title": "Msg",
"description": "Error message",
"default": ""
"title": "Error Type"
}
},
"type": "object",
"required": [
"loc",
"msg",
"type"
],
"title": "PydanticError"
"title": "ValidationError"
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"dependencies": {
"aws-cdk": "2.131.0"
"aws-cdk": "2.134.0"
}
}
Loading