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

Importing fixed version of OAS ruleset #2444

Open
OllieTho opened this issue Mar 30, 2023 · 0 comments
Open

Importing fixed version of OAS ruleset #2444

OllieTho opened this issue Mar 30, 2023 · 0 comments
Labels
enhancement New feature or request triaged

Comments

@OllieTho
Copy link

Describe the bug
I was directed to raise this as an issue by @P0lip

I'm attempting to pin a specific version of spectral's OAS ruleset and have it work in both spectral cli and StopLight studio. Previously when importing this into StopLight studio I get an error about the spectral-functions package attempting to be imported when it already exists. Now it displays the following:

Module "https://unpkg.com/@stoplight/[email protected]/dist/oas/index.js" that is marked with 'syntheticNamedExports: "__moduleExports"' needs an explicit export named "__moduleExports" that does not reexport an unresolved named export of the same module.

To Reproduce
Import the oas ruleset into your .spectral.yaml file.

extends:
  - https://unpkg.com/@stoplight/[email protected]/dist/oas/index.js

Expected behavior
I would like to be able to use a specific version of the OAS ruleset to maintain project uptime in case an update requires changes or a service outage prevents us from reaching npm or other providers.

@mnaumanali94 mnaumanali94 added the enhancement New feature or request label May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triaged
Projects
None yet
Development

No branches or pull requests

2 participants