feat(Insomnia): custom linting rules for cloud and local#5287
Conversation
✅ Deploy Preview for kongdeveloper ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Pull request overview
This PR updates the Insomnia documentation to reflect the new approach for applying custom Spectral linting rules in both Insomnia projects and locally via Inso CLI.
Changes:
- Updates the “Add custom linting rules” how-to to use project-based ruleset uploads and clarifies supported Spectral properties.
- Adjusts the Insomnia API specs “Linting” section to reflect the updated custom rules workflow.
- Adds
no_wrapfrontmatter to the how-to page (currently with invalid YAML formatting).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| app/insomnia/api-specs.md | Updates linting guidance to describe custom ruleset usage for local linting and Insomnia UI. |
| app/_how-tos/insomnia/add-custom-linting-rules.md | Revises the how-to steps for custom rulesets and adds a Spectral properties note (plus frontmatter change). |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Co-authored-by: Julia <101819212+juliamrch@users.noreply.github.com>
|
@juliamrch This contains the CLI files and the version files. Can we make those a different PR? |
cloudjumpercat
left a comment
There was a problem hiding this comment.
Reviewed and it worked for me! Here's some of my feedback:
- I provided suggestions to change the wording to describe where you upload the ruleset.
- Recommend moving the
## Define the rulesheading before the## Upload the ruleset fileheading. - Suggested modifications to the verification section to trigger the ruleset more reliably.
I'm trying to be mindful of your deadlines and scope creep, but in the spirit of many users using automations/agents/AI, ideally we'd convert this how to to Inso CLI instructions instead of UI. Could be a future docs ticket. We should leave some note or FAQ about if users want to do this in the UI, do xyz, because Insomnia users do definitely ask for UI instructions frequently.
Co-authored-by: Diana <75819066+cloudjumpercat@users.noreply.github.com>
Co-authored-by: Diana <75819066+cloudjumpercat@users.noreply.github.com>
Co-authored-by: Diana <75819066+cloudjumpercat@users.noreply.github.com>
Co-authored-by: Diana <75819066+cloudjumpercat@users.noreply.github.com>
Co-authored-by: Diana <75819066+cloudjumpercat@users.noreply.github.com>
Co-authored-by: Diana <75819066+cloudjumpercat@users.noreply.github.com>
cloudjumpercat
left a comment
There was a problem hiding this comment.
Just one nitpick! This is good to merge as long as Cam has also approved it.
| ## Create add the file ruleset | ||
|
|
||
| In the Git repository connected to your document, create a `.spectral.yaml` at the same directory as the OAS file to lint. | ||
| {{ site.data.products.insomnia.name }} provides a default linting ruleset. Override it to add your custom linting rules by following these steps: |
There was a problem hiding this comment.
| {{ site.data.products.insomnia.name }} provides a default linting ruleset. Override it to add your custom linting rules by following these steps: | |
| {{ site.data.products.insomnia.name }} provides a default linting ruleset. Override it to add your custom linting rules by following these steps. |

Description
Closes #5284
Preview Links
https://deploy-preview-5287--kongdeveloper.netlify.app/how-to/add-custom-linting-rules/
How to test
This test uses an Insomnia Git project and the beta release (set it in Preferences > Update channel > Early Access (beta))
my-rules.yaml:Leave it in your home path.
4. Download the beta artifacts (macOS-X64-artifacts
5. Dezip it and find
insomnia-inso/artifacts/inso-macos-13.0.0-beta.1.zip, click it6. Rename the inso binary to
inso-beta-13and move it to your home7. Open an Insomnia project in your terminal (copy and paste the command provided from Insomnia in Project settings > Path to local files).
8. Run this command:
~/inso-beta-13-1 lint spec -r ~/my-rules.yamlChecklist
descriptionentry in frontmatter.