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

fix: Add accept option to merged config #1344

Merged
merged 3 commits into from
Jan 9, 2024
Merged

fix: Add accept option to merged config #1344

merged 3 commits into from
Jan 9, 2024

Conversation

Techassi
Copy link
Contributor

@Techassi Techassi commented Jan 8, 2024

Fixes #1340

@mre
Copy link
Member

mre commented Jan 8, 2024

Thanks for fixing that. Could you add a test as well to make sure we don't break it in the future? 🙏

@Techassi
Copy link
Contributor Author

Techassi commented Jan 8, 2024

How would such a test look like? Do we assert on the correct accepted status codes after merging the CLI values with the config file values?

@mre
Copy link
Member

mre commented Jan 9, 2024

Sure, just something simple like https://github.com/Techassi/lychee/pull/1.

mre and others added 2 commits January 9, 2024 20:18
* Add unit test for accepted status codes

* Fix deserialization error with accepted status code ranges

* Revert "Fix deserialization error with accepted status code ranges"

This reverts commit ad6e4d9.
@mre mre merged commit 0d0be52 into lycheeverse:master Jan 9, 2024
7 checks passed
@mre
Copy link
Member

mre commented Jan 9, 2024

Thanks for fixing the clippy error. 👍

@Techassi
Copy link
Contributor Author

Techassi commented Jan 9, 2024

Oh I wanted to include the serde support :/

I will create a new PR then...

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.

accept 429 code not taken in account
2 participants