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

Add validation to esp-config #2475

Merged
merged 4 commits into from
Nov 12, 2024
Merged

Conversation

jessebraham
Copy link
Member

@jessebraham jessebraham commented Nov 7, 2024

Opening as a draft, as this will need rebasing and additional changes once #2422 and #2246 get merged.

I have not actually taken advantage of the validation in any of the packages depending on esp-config, not sure if that should be considered in-scope for this or be handled in a subsequent PR. Will take some time to do this.

skip-changelog added as the esp-config package does not have a CHANGELOG.md, and there are no user-facing changes here.

Closes #2206

@jessebraham jessebraham added the skip-changelog No changelog modification needed label Nov 7, 2024
@jessebraham jessebraham added status:blocked Unable to progress - dependent on another task and removed status:blocked Unable to progress - dependent on another task labels Nov 8, 2024
@jessebraham jessebraham marked this pull request as ready for review November 11, 2024 09:16
Copy link
Contributor

@bjoernQ bjoernQ left a comment

Choose a reason for hiding this comment

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

LGTM and I think this is enough - not even sure we'll ever really use Custom (but maybe we will)

Copy link
Contributor

@bugadani bugadani 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'm confused by one thing but that may just be me. Thanks!

.join(format!("{prefix}config_table.md"))
.to_string_lossy()
.join(format!("{prefix}_config_table.md"))
.display()
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think I understand why we convert a PathBuf into a string before we pass it to something that needs an AsRef.

@bugadani bugadani added this pull request to the merge queue Nov 12, 2024
Merged via the queue into esp-rs:main with commit cf10f07 Nov 12, 2024
44 checks passed
@jessebraham jessebraham deleted the feature/esp-config branch November 12, 2024 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip-changelog No changelog modification needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

esp-config: validation of input
4 participants