question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add $schema to schema

See original GitHub issue

Adding the “$schema” prop would allow IDE support for IntelliSense.

One can add it to the config file themselves, but then IDE throws a little warning that “Property $schema is not allowed.” Not a big deal, but it’d be nice to do away without the warning.

{
  "$schema": "./node_modules/markdownlint/schema/markdownlint-config-schema.json",
  "default": true,
  "MD013": {
    "line_length": 100
  }
}

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
DavidAnsoncommented, Oct 14, 2019

Thanks. This should be fine to add.

0reactions
moltarcommented, Oct 14, 2019

Maybe it’s just VS Code specific, but it is documented here, and I can confirm it works.

https://code.visualstudio.com/docs/languages/json#_json-schemas-and-settings

Even without the markdownlint VS Code extension, I get IntelliSense.

Here’s a video demo of that: https://drive.google.com/file/d/14TvQkNnwSFo80upePXA-oUudln-qIWMP/view?usp=drivesdk

I renamed $schema to _$schema first to disable the behavior, which then produces meaningless IntelliSense suggestions. After I renamed it back, the IS came back.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create a Database Schema - SQL Server | Microsoft Learn
To create a schema · In Object Explorer, expand the Databases folder. · Expand the database in which to create the new database...
Read more >
Add Custom Schema Markup With Schema Pro
Step 1 – Go to Settings > Schema Pro and click on Add New. Add new schema button. Step 2 – Select Custom...
Read more >
What Is Schema Structured Data And How To Implement It - Moz
Schema.org (often called schema) is a semantic vocabulary of tags (or microdata) that you can add to your HTML to improve the way...
Read more >
How to Boost Your SEO by Using Schema Markup - Neil Patel
How to Use Schema Markup for SEO · 1. Go to Google's Structured Data Markup Helper · 2. Select the Type of Data...
Read more >
Mongoose v6.8.2: Schemas
If you are migrating from 5.x to 6.x please take a moment to read the migration guide. Defining your schema; Creating a model;...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found