Thanks to visit codestin.com
Credit goes to github.com

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.

@netlify
Copy link

netlify bot commented Aug 4, 2025

Deploy Preview for endearing-brigadeiros-63f9d0 canceled.

Name Link
🔨 Latest commit 27fddc8
🔍 Latest deploy log https://app.netlify.com/projects/endearing-brigadeiros-63f9d0/deploys/68c10fb6b17ddb000848fa64

@fabiovincenzi fabiovincenzi linked an issue Aug 4, 2025 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Aug 14, 2025

Codecov Report

❌ Patch coverage is 81.43460% with 44 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.67%. Comparing base (6c516a3) to head (27fddc8).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/config/index.ts 82.03% 7 Missing and 16 partials ⚠️
src/config/generated/config.ts 78.16% 15 Missing and 4 partials ⚠️
src/config/ConfigLoader.ts 87.50% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1140      +/-   ##
==========================================
+ Coverage   83.44%   83.67%   +0.23%     
==========================================
  Files          66       67       +1     
  Lines        2790     2886      +96     
  Branches      332      365      +33     
==========================================
+ Hits         2328     2415      +87     
+ Misses        413      410       -3     
- Partials       49       61      +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.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Aug 26, 2025

CLA Not Signed

Copy link
Contributor

@jescalada jescalada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

I wonder if there's a way to fix the CLA issue? We could otherwise re-open the PR with cherry-picked changes.

@finos-admin
Copy link
Member

Given that @JamieSlome was covered by the Citi CCLA at the time the commits were made we can ignore the EasyCLA bot in this particular case. A @finos/git-proxy-maintainers should be able to force merge this PR. Please email [email protected] with any questions or concerns.

@jescalada jescalada requested a review from a team September 4, 2025 01:18
@jescalada
Copy link
Contributor

@kriswest Would be great if you could take another look at this - I think it fixes a lot of typing issues with the config.

Copy link
Contributor

@kriswest kriswest left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this will be a great improvement, thanks for taking it on. I have one question about validation of the default config to answer, otherwise I think good to go

@kriswest
Copy link
Contributor

kriswest commented Sep 8, 2025

Forgot to say - lets have this in v2 @finos/fdc3-maintainers !

Copy link
Contributor

@jescalada jescalada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! As @finos-admin mentioned, I'll be ignoring the EasyCLA bot warning for this PR.

@jescalada
Copy link
Contributor

@TheJuanAndOnly99 @finos-admin This is ready to merge! 🚀

@finos-admin finos-admin merged commit b0c247c into finos:main Sep 10, 2025
13 of 14 checks passed
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

5 participants