auto-rest-api 0.1.8__tar.gz → 0.1.9__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of auto-rest-api might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: auto-rest-api
3
- Version: 0.1.8
3
+ Version: 0.1.9
4
4
  Summary: Automatically map database schemas and deploy per-table REST API endpoints.
5
5
  License: GPL-3.0-only
6
6
  Keywords: Better,HPC,automatic,rest,api
@@ -55,7 +55,7 @@ async def logging_middleware(request: Request, call_next: callable) -> Response:
55
55
  response = await call_next(request)
56
56
 
57
57
  except Exception as exc:
58
- logger.error(str(exec), exc_info=exc, extra=request_meta)
58
+ logger.error(str(exc), exc_info=exc, extra=request_meta)
59
59
  raise
60
60
 
61
61
  # Log the outgoing response
@@ -325,7 +325,7 @@ def create_put_record_handler(engine: DBEngine, table: Table) -> Callable[..., A
325
325
  setattr(record, key, value)
326
326
 
327
327
  await commit_session(session)
328
- return interface.model_validate(record.__dict__)
328
+ return record
329
329
 
330
330
  return put_record_handler
331
331
 
@@ -52,7 +52,7 @@ def create_field_definition(col: Column, mode: MODE_TYPE = "default") -> tuple[t
52
52
  Modes:
53
53
  default: Values are marked as (not)required based on the column schema.
54
54
  required: Values are always marked required.
55
- required: Values are always marked optional.
55
+ optional: Values are always marked optional.
56
56
 
57
57
  Args:
58
58
  col: The column to return values for.
@@ -91,7 +91,7 @@ def create_interface(table: Table, pk_only: bool = False, mode: MODE_TYPE = "def
91
91
  Modes:
92
92
  default: Values are marked as (not)required based on the column schema.
93
93
  required: Values are always marked required.
94
- required: Values are always marked optional.
94
+ optional: Values are always marked optional.
95
95
 
96
96
  Args:
97
97
  table: The SQLAlchemy table to create an interface for.
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
4
4
 
5
5
  [project]
6
6
  name = "auto-rest-api"
7
- version = "0.1.8"
7
+ version = "0.1.9"
8
8
  readme = "README.md"
9
9
  description = "Automatically map database schemas and deploy per-table REST API endpoints."
10
10
  authors = [{ name = "Better HPC LLC" }]
@@ -52,7 +52,7 @@ coverage = "*"
52
52
 
53
53
  [tool.poetry.group.docs.dependencies]
54
54
  mkdocs = "^1.6.1"
55
- mkdocs-material = "^9.6.15"
55
+ mkdocs-material = "^9.6.16"
56
56
  mkdocstrings-python = "^1.16.10"
57
57
 
58
58
  [tool.poetry.scripts]
File without changes
File without changes