Skip to content

fix(ETU-69952): Add default as allowed response code#103

Merged
egrimstad merged 3 commits intomainfrom
fix/ETU-69952-default-response
Mar 31, 2026
Merged

fix(ETU-69952): Add default as allowed response code#103
egrimstad merged 3 commits intomainfrom
fix/ETU-69952-default-response

Conversation

@egrimstad
Copy link
Copy Markdown
Contributor

@egrimstad egrimstad commented Mar 26, 2026

Fix responses rule. I dont quite know what the "*~" syntax means, but it does not look to be valid JSONPath. EDIT: It is a "jsonpath-plus" syntax.

There is a bug in spectral which means that when using the field: @key, documented here: https://docs.stoplight.io/docs/spectral/d3482ff0ccae9-rules#then the error message cant interpolate the value that is being linted. It instead prints "Object {}" as the value. Plus that the range of the error is wack, so the GIthub annotation relating to the error is suboptimally placed. I created an issue in the spectral repo: stoplightio/spectral#2922

And fix responses rule. I dont quite know what the "*~" syntax means,
but it does not look to be valid JSONPath.
@egrimstad egrimstad requested a review from a team as a code owner March 26, 2026 13:40
@egrimstad egrimstad merged commit 39294d5 into main Mar 31, 2026
3 checks passed
egrimstad pushed a commit that referenced this pull request Mar 31, 2026
🤖 I have created a release *beep* *boop*
---


##
[2.2.4](v2.2.3...v2.2.4)
(2026-03-31)


### Bug Fixes

* `entur-request-body-description` updated to allow description on
schema referenced in `content.*.schema`.
([a3211ff](a3211ff))
* Allow header "Entur-POS" since it is standard
([#102](#102))
([7480b19](7480b19))
* **ETU-69952:** Add default as allowed response code
([#103](#103))
([39294d5](39294d5))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

2 participants