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

Regression from 6.11.1->6.13.1 parsing OpenAPI specs with an operation using $ref #2713

Open
robjtede opened this issue Oct 21, 2024 · 0 comments

Comments

@robjtede
Copy link

robjtede commented Oct 21, 2024

Describe the bug

For an OpenAPI v3.1 spec including this, for example:

paths:
  /token:
    post:
      $ref: '_api-login.yml#/operations/login'

We now receive this error:

 nn:10  error  oas3-schema  "post" property must not have unevaluated properties.  paths./token.post

This seemed to work fine in Spectral v6.11.1.

To Reproduce

  1. Given the OpenAPI document above.
  2. Run this CLI command 'spectral lint'
  3. See error shown.
  4. See error is not shown when using v6.11.1.

Expected behavior
Spec should be parsed and reference resolved, as it is in other contexts.

Environment (remove any that are not applicable):

  • Library version: v6.13.1
  • OS: Ubuntu
  • Browser: N/A

Additional context
I understand that it's possible, via a strict reading of OAS v3.1, that this is not supposed to be allowed and supporting it previously was a bug. However, it's worth it to me to check the team's stance on that, given that I'd like it to be supported (and actually might be worth a contribution to the spec itself).

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

No branches or pull requests

1 participant