fix(ETU-69952): Add default as allowed response code#103
Merged
Conversation
And fix responses rule. I dont quite know what the "*~" syntax means, but it does not look to be valid JSONPath.
rikard-swahn
approved these changes
Mar 31, 2026
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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