Mark project as not required and only validate when specified.#6562
Mark project as not required and only validate when specified.#6562Zusel wants to merge 1 commit into
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
Signed-off-by: itstimetoforget <Zusel7.Zusel7@gmail.com>
591c068 to
ece9ec0
Compare
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 0 |
| Duplication | 1 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
nscuro
left a comment
There was a problem hiding this comment.
Thanks for the PR!
I get the intention behind failing for inconsistent project <-> component parameters, but it will cause all existing clients to break that did not consider this. The previous behavior was mostly harmless because what mattered has always been the component parameter. Turning that into an error is quite blunt and not appropriate for a patch version.
I'd suggest we just follow what 0dbe529 (v5) did:
- Ignore the
projectparameter entirely - Deprecate the
projectparameter so it becomes visible in the OpenAPI spec:
|
Heyho,
then it will never affect them. |
Description
"Hey, so after our little chat, I thought I'd just quickly add it myself. My thinking behind it was that I'd simply check whether the component's project and the (optional) project match. That way we can resolve the 500 and also get users used to the idea that the project field will go away entirely. With the conflict, we can then prevent someone (like me) from wondering why what they expected isn't happening :)
Addressed Issue
#6561
Additional Details
Checklist
docs/adr/(no)