Skip to content

feat(loader): support validate with standard schema #237

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ysknsid25
Copy link
Contributor

attempts to resolve #228

src/loader.ts Outdated
@@ -213,6 +215,18 @@ export async function loadConfig<
return r;
}

export async function loadConfigWithValidate<
Copy link
Member

@pi0 pi0 Mar 26, 2025

Choose a reason for hiding this comment

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

I think we can merge this functionality with the main loadConfig with the optional validate util.

We can also validate layers individually.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@pi0
I see! I tried to correct it. Please re-review!

@pi0 pi0 changed the title feat(loader): implements validation by standard schema feat(loader): support validate with standard schema Mar 26, 2025
@ysknsid25 ysknsid25 requested a review from pi0 March 26, 2025 13:31
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.

Support validation
2 participants