Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Commit

Permalink
Merge pull request #57 from esune/chore/dependency-updates
Browse files Browse the repository at this point in the history
Updated dependencies, updated lifecycle badge, fix model validation.
  • Loading branch information
esune authored Sep 11, 2024
2 parents 87002d7 + 2084183 commit e6b20d4
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![img](https://img.shields.io/badge/Lifecycle-Maturing-007EC6)](https://github.com/bcgov/repomountie/blob/master/doc/lifecycle-badges.md)
[![Lifecycle:Retired](https://img.shields.io/badge/Lifecycle-Retired-d45500)](https://github.com/bcgov/repomountie/blob/master/doc/lifecycle-badges.md)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE)

# LCRB Digital Age Verification Service ([lcrb-dav](https://hackmd.io/@esune/SywrtDQvp))
Expand Down
2 changes: 2 additions & 0 deletions dav-controller/api/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,14 @@ class RevealedAttribute(TypedDict, total=False):
class AgeVerificationModelCreate(BaseModel):
notify_endpoint: str | None
metadata: dict | None
retain_attributes: bool | None

class Config:
schema_extra = {
"example": {
"notify_endpoint": "https://my-url/webhook#api-key",
"metadata": {"other_system_id": 123},
"retain_attributes": False,
}
}

Expand Down
1 change: 1 addition & 0 deletions dav-controller/api/routers/age_verification.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ async def new_dav_request(
url=url_to_message,
notify_endpoint=request.notify_endpoint,
metadata=request.metadata,
retain_attributes=request.retain_attributes,
)


Expand Down
6 changes: 3 additions & 3 deletions dav-controller/requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
black==24.4.2
flake8==7.0.0
flake8==7.1.1
mock==5.1.0
mongomock==4.1.2
pytest-asyncio==0.23.7
pytest-cov==5.0.0
pytest==8.2.2
pytest==8.3.2
requests-mock==1.12.1
setuptools==70.0.0
setuptools==70.3.0
2 changes: 1 addition & 1 deletion dav-controller/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
fastapi==0.96.0
jinja2==3.1.4
pymongo==4.3.3
pymongo==4.8.0
python-multipart==0.0.9 # required by fastapi to serve/upload files
qrcode[pil]==7.4.2
structlog==24.2.0
Expand Down
2 changes: 1 addition & 1 deletion docker/dav-controller/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.11 as main
FROM python:3.12-bullseye AS main

WORKDIR /app

Expand Down

0 comments on commit e6b20d4

Please sign in to comment.