Skip to content

Commit 2423a4d

Browse files
christosm-devclaude
andcommitted
Fix C4 annotation references for validation
Update C4 annotations to match declared element names and remove invalid references to external systems not yet supported. - Change "Data Models (app.models)" to "Data Validation Layer" to match component declaration - Remove module path suffixes like "(app.database)" from references - Remove "@c4-uses: SQLite Database" reference (external databases not yet supported by c4-literate-python) These changes resolve all validation errors and allow the CI pipeline to pass successfully. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent a569210 commit 2423a4d

3 files changed

Lines changed: 5 additions & 9 deletions

File tree

app/database.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,7 @@
6969
7070
SYSTEM INTERACTIONS
7171
-------------------
72-
@c4-uses: SQLite Database - "Reads and writes note data" - "SQL/SQLite3"
73-
@c4-used-by: API Application (app.main) - "Requests database sessions" - "SQLAl
74-
chemy ORM"
72+
@c4-used-by: API Application - "Requests database sessions" - "SQLAlchemy ORM"
7573
7674
DATABASE SCHEMA
7775
---------------

app/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@
6363
6464
SYSTEM INTERACTIONS
6565
-------------------
66-
@c4-uses: Database Layer (app.database) - "Manages note
66+
@c4-uses: Database Layer - "Manages note
6767
persistence" - "SQLAlchemy ORM"
68-
@c4-uses: Data Models (app.models) - "Validates request/response
68+
@c4-uses: Data Validation Layer - "Validates request/response
6969
data" - "Pydantic"
7070
@c4-used-by-person: API Consumer - "Creates, reads, and deletes
7171
notes" - "HTTPS/JSON"

app/models.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,8 @@
7676
7777
SYSTEM INTERACTIONS
7878
-------------------
79-
@c4-used-by: API Application (app.main) - "Validates requests and formats respo
80-
nses"
81-
@c4-uses: Database Layer (app.database) - "Serializes ORM objects to API respon
82-
ses"
79+
@c4-used-by: API Application - "Validates requests and formats responses"
80+
@c4-uses: Database Layer - "Serializes ORM objects to API responses"
8381
8482
ERROR HANDLING
8583
--------------

0 commit comments

Comments
 (0)