Skip to content
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

Configuration validation #1573

Closed
achingbrain opened this issue Feb 1, 2023 · 0 comments · Fixed by #1778 · May be fixed by #2133
Closed

Configuration validation #1573

achingbrain opened this issue Feb 1, 2023 · 0 comments · Fixed by #1778 · May be fixed by #2133
Assignees
Labels
exp/intermediate Prior experience is likely helpful kind/enhancement A net-new feature or improvement to an existing feature

Comments

@achingbrain
Copy link
Member

We don't perform much in the way of validation on loaded libp2p config but we really should.

Ideally each module parsing it's config would use something like superstruct to validate at creation time and fail fast with good feedback to the user as to how they can fix their broken config.

This should negate the need for PRs like #1572 as the config would have been validated in src/config.ts already.

@achingbrain achingbrain added need/triage Needs initial labeling and prioritization kind/enhancement A net-new feature or improvement to an existing feature need/analysis Needs further analysis before proceeding exp/intermediate Prior experience is likely helpful and removed need/triage Needs initial labeling and prioritization labels Feb 1, 2023
@maschad maschad self-assigned this Feb 6, 2023
@p-shahi p-shahi removed the need/analysis Needs further analysis before proceeding label Feb 14, 2023
maschad added a commit to maschad/js-libp2p that referenced this issue May 29, 2023
maschad added a commit to maschad/js-libp2p that referenced this issue Jul 3, 2023
maschad added a commit to maschad/js-libp2p that referenced this issue Jul 5, 2023
maschad added a commit to maschad/js-libp2p that referenced this issue Jul 5, 2023
maschad added a commit to maschad/js-libp2p that referenced this issue Aug 20, 2023
maschad added a commit to maschad/js-libp2p that referenced this issue Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exp/intermediate Prior experience is likely helpful kind/enhancement A net-new feature or improvement to an existing feature
Projects
None yet
3 participants