-
-
Notifications
You must be signed in to change notification settings - Fork 140
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
Cannot load configuration file: invalid type: integer 200
, expected a string
#1338
Comments
Upgrade lychee default configuration to handle [breaking change between 0.13.0 and 0.14.0](lycheeverse/lychee#1338)
* [automation] Auto-update linters version, help and documentation * Fix lychee breaking change Upgrade lychee default configuration to handle [breaking change between 0.13.0 and 0.14.0](lycheeverse/lychee#1338) * Undowngrade revive * Fix lychee config until bug is solved lycheeverse/lychee#1340 * [MegaLinter] Apply linters fixes --------- Co-authored-by: nvuillam <[email protected]> Co-authored-by: nvuillam <[email protected]>
Oh, okay. We changed the parsing and status codes need to be strings now. The reason is that ranges are also supported now, e.g. |
Supporting both is probably ideal yes. Just would like to make one small remark that semver allows breaking changes before 1.0. In fact, that's the very reason why lychee is not 1.0 yet: I do anticipate quite a few more breaking changes before the first stable release; it's just that this specific one is probably avoidable. Whether we will support both, string and int, depends on the complexity of the implementation and what side effects this will have down the road. So far I don't see any reason why it shouldn't be possible. |
Indeed you're right about semver, I forgot the "before 1.0.0 rule" :) But as lychee is more and more popular (it has been embedded in MegaLinter by a contributor from Microsoft using it on MS internal repos ^^) , projects are more and more dependent on it, maybe it would be time to release a 1.0.0 ? 👼 |
We should be able to enable support for single integers and list of integers by widening our custom serde implementation. I could tackle this is a PR in the next few days. |
This will be fixed as soon as #1345 is merged. |
Amazing work! |
Example in documentation contains the following example:
But when using the latest version, we have the following error:
Out lychee.toml file contains:
The text was updated successfully, but these errors were encountered: