Linting

Linting is enabled by default in Insomnia Designer. As you type, Insomnia Designer validates your specification in the background for issues. In the screen below, note the red dot next to line 26 indicating that there is an issue:

The Linter Panel displays at the bottom of the Editor contents. This panel aggregates all errors and warnings from the specification into a centralized location so it’s easier to get an overall sense of what’s going wrong without scrolling through and checking each individual line. Let’s open up the details panel and see what’s going wrong on line 26:

The message indicates to us that the linter has found an issue due to the parent on line 25, stating that children keys should be strings instead of numbers. That means the 200 on line 26 should be wrapped inside quotes as '200'. Note in the screen below that once we add the quotes, the issue is resolved and the linting error disappears:

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us