Skip to content

Conversation

fabiovincenzi
Copy link
Contributor

Replace JSON-Schema for config validation and default injection
Add typed config export, loadConfig(), validate() and setConfigFile()
Update index.ts to use the new loader and pass the validated config.


Note: Restored from deleted fork

This PR recreates the original PR #998, which was automatically closed due to accidental fork deletion.

** For discussions and reviews:** See the original PR #998

All commits are identical to the original with preserved git history.

Copy link

netlify bot commented Aug 4, 2025

Deploy Preview for endearing-brigadeiros-63f9d0 canceled.

Name Link
🔨 Latest commit 794dfae
🔍 Latest deploy log https://app.netlify.com/projects/endearing-brigadeiros-63f9d0/deploys/68aeb8f4ef1f810008210dbb

Copy link

codecov bot commented Aug 14, 2025

Codecov Report

❌ Patch coverage is 81.27660% with 44 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.39%. Comparing base (94d807d) to head (794dfae).

Files with missing lines Patch % Lines
src/config/index.ts 82.03% 7 Missing and 16 partials ⚠️
src/config/generated/config.ts 80.00% 13 Missing and 4 partials ⚠️
src/config/ConfigLoader.ts 87.50% 0 Missing and 2 partials ⚠️
src/proxy/index.ts 0.00% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1140      +/-   ##
==========================================
+ Coverage   82.83%   83.39%   +0.56%     
==========================================
  Files          66       67       +1     
  Lines        2784     2878      +94     
  Branches      334      367      +33     
==========================================
+ Hits         2306     2400      +94     
+ Misses        431      419      -12     
- Partials       47       59      +12     

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link

linux-foundation-easycla bot commented Aug 26, 2025

CLA Not Signed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Refactor]: Improve configuration loading
2 participants