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.

Issue: VSCode issues shows `path` not allowed in frontMatter.data.files

See original GitHub issue

Latest version.

Describe the bug Working on my configuration file in VSCode I see a yellow underline in the path-property of the following code sample:

{
  "$schema": "https://frontmatter.codes/frontmatter.schema.json",
  "frontMatter.data.files": [
    {
      "id": "all-sponsors",
      "path": "[[workspace]]/kollitsch/music.toml",
      "type": "sponsors"
    }
  ],
  "frontMatter.data.folders": [],
  "frontMatter.data.types": [
    {
      "id": "sponsors",
      "title": "Sponsors",
      "fileType": "json",
      "labelField": "name",
      "schema": {
        "title": "Sponsors",
        "type": "object",
        "required": [
          "name",
          "url"
        ],
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "url": {
            "type": "string",
            "title": "URL"
          },
          "description": {
            "type": "string",
            "title": "Description"
          }
        }
      }
    }
  ]
}

The overlay says: “Property path is not allowed.”. The documentation of that feature includes a path property: https://frontmatter.codes/docs/dashboard#re-using-a-data-type-for-files-or-folders

Either the docs or the schema used to parse the config has an issue here.

20220526-20:51:02-Selection-001

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
estruyfcommented, May 26, 2022

The 7.3.1 release is published which should fix the (unseen) issue.

Thanks, @davidsneighbour for mentioning the documentation issues. It is very much appreciated!

0reactions
estruyfcommented, Jun 15, 2022

Linking this to #356

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issue: labelField parameter is not documented or in the ...
Describe the bug Add 'labelField' to the frontmatter.json file for a Field Group, the warning "Property labelField is not allowed" is shown ......
Read more >
Troubleshoot Terminal launch failures - Visual Studio Code
If your terminal is set to run as administrator only, and you are not launching VS Code as administrator, the terminal will not...
Read more >
Settings
vscode /settings.json configuration, we went for a frontmatter.json file on the root of your project/solution. The settings you provide in this ...
Read more >
Front Matter - Hugo
Hugo allows you to add front matter in yaml, toml, or json to your content files.
Read more >
GitLab Flavored Markdown (GLFM)
In GitLab, front matter is used only in Markdown files and wiki pages, not the other places ... The following topics show how...
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