Skip to content

Commit 59643b9

Browse files
committed
[DOP-23620] Fix OpenAPI.json version
1 parent 94c16e6 commit 59643b9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

syncmaster/server/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from pydantic import ValidationError
77
from sqlalchemy.ext.asyncio import async_engine_from_config
88

9+
from syncmaster import _raw_version as syncmaster_version
910
from syncmaster.db.factory import create_session_factory, get_uow
1011
from syncmaster.exceptions import SyncmasterError
1112
from syncmaster.server.api.router import api_router
@@ -35,6 +36,7 @@ def celery_factory(settings: Settings) -> Celery:
3536
def application_factory(settings: Settings) -> FastAPI:
3637
application = FastAPI(
3738
title="Syncmaster",
39+
version=syncmaster_version,
3840
debug=settings.server.debug,
3941
# will be set up by middlewares
4042
openapi_url=None,

0 commit comments

Comments
 (0)