Skip to content

Improve schema validation#197

Merged
OCopping merged 3 commits intomainfrom
improve-schema-validation
Jan 30, 2026
Merged

Improve schema validation#197
OCopping merged 3 commits intomainfrom
improve-schema-validation

Conversation

@OCopping
Copy link
Collaborator

@OCopping OCopping commented Jan 27, 2026

This PR aims to improve the schema validation by adding the option of adding macros if a custom file is defined in techui.yaml.
It also adds some basic VSCode validation checks (as they are separate from pydantic checks).
And a bit of tidying while I'm at it.

@OCopping OCopping self-assigned this Jan 27, 2026
@codecov
Copy link

codecov bot commented Jan 28, 2026

Codecov Report

❌ Patch coverage is 97.67442% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 89.75%. Comparing base (49f5d6a) to head (f5549a2).
⚠️ Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
src/techui_builder/models.py 91.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #197      +/-   ##
==========================================
+ Coverage   89.54%   89.75%   +0.20%     
==========================================
  Files           9        9              
  Lines         775      800      +25     
==========================================
+ Hits          694      718      +24     
- Misses         81       82       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

(Checks if file exists before allowing macros)

Also updated computed_fields to not appear in repr
@OCopping OCopping force-pushed the improve-schema-validation branch from f6c7304 to f5549a2 Compare January 30, 2026 09:21
@OCopping OCopping merged commit cecc500 into main Jan 30, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants