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

[Question] Spectral Linting Step Shows warnings and all tests are failed #492

Closed
Arslan007 opened this issue Feb 24, 2024 · 2 comments
Closed

Comments

@Arslan007
Copy link

Release version

5.1.1

Question Details

Extractor Pipelines shows error for Spectral linting. Is this OK if there are some errors/warnings for this step.

If Yes then can I disable these steps

Install Node.js
Install Spectral
Run Spectral Linting
Linting results for API

Expected behavior

All steps for extractor pipeline should work without any error/warnings

Actual behavior

Extractor pipeline shows error/warnings for Spectral linting steps

Reproduction Steps

Run the Extractor pipeline against DEV-APIM

Copy link

  Thank you for opening this issue! Please be patient while we will look into it and get back to you as this is an open source project. In the meantime make sure you take a look at the [closed issues](https://github.com/Azure/apiops/issues?q=is%3Aissue+is%3Aclosed) in case your question has already been answered. Don't forget to provide any additional information if needed (e.g. scrubbed logs, detailed feature requests,etc.).
  Whenever it's feasible, please don't hesitate to send a Pull Request (PR) our way. We'd greatly appreciate it, and we'll gladly assess and incorporate your changes.

@vandriot
Copy link
Contributor

Hi @Arslan007,

This Spectral linting step just allows you to check if your swagger respects the Open API rules (you can find reference here: https://docs.stoplight.io/docs/spectral/4dec24461f3af-open-api-rules).
It will not prevent you from extracting your api, creating a PR for the main branch and to push it to higher apim environment.
It is just showing a warning if the step is not completed without errors.

If you don't need these steps, feel free to comment or delete the mentioned steps.

@waelkdouh waelkdouh closed this as not planned Won't fix, can't repro, duplicate, stale Feb 27, 2024
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

3 participants