Skip to content

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

@davidsneighbour

Description

@davidsneighbour

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions