Skip to content

VS Code resource manifest schema error #917

@ThomasNieto

Description

@ThomasNieto

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.

Summary

The https://aka.ms/dsc/schemas/v3/bundled/resource/manifest.json resource schema in VS code is throwing an error.

Steps to reproduce

Open document in VS code.

{
  "$schema": "https://aka.ms/dsc/schemas/v3/bundled/resource/manifest.json",
  "type": "OpenDsc.Windows/Service",
  "description": "Manage Windows Services",
  "tags": [
    "Windows"
  ],
  "version": "0.1.0",
  "get": {
    "executable": "windows-service",
    "args": [
      "config",
      "get",
      {
        "jsonInputArg": "--input",
        "mandatory": true
      }
    ]
  },
  "export": {
    "executable": "windows-service",
    "args": [
      "config",
      "export"
    ]
  },
  "exitCodes": {
    "0": "Success",
    "1": "Invalid parameter",
    "2": "Generic Failure",
    "3": "Invalid JSON",
    "4": "Failed to get services"
  },
  "schema": {
    "command": {
      "executable": "windows-service",
      "args": [
        "schema"
      ]
    }
  }
}

Expected behavior

Schema works

Actual behavior

Problems loading reference 'https://aka.ms/PowerShell/DSC/main/schemas/v3/resource/manifest.adapter.json': Unable to parse content from 'https://aka.ms/PowerShell/DSC/main/schemas/v3/resource/manifest.adapter.json': Parse error at offset 0.(768)

Manifest Schema

This property must be the canonical URL of the Command-based DSC resource Manifest schema that the manifest is implemented for.

Error details

Environment data

Latest VS code with json.schemas


"json.schemas": [
    
    {
      "fileMatch": [
        "**/*.dsc.json",
        "**/*.dsc.config.json"
      ],
      "url": "https://aka.ms/dsc/schemas/v3/bundled/config/document.vscode.json"
    },
    {
      "fileMatch": [
        "**/*.dsc.resource.json",
      ],
      "url": "https://aka.ms/dsc/schemas/v3/bundled/resource/manifest.vscode.json"
    }
  ]

Version

3.2-preview1

Visuals

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions