ikappas / vscode-composer

PHP Composer for Visual Studio Code
MIT License
24 stars 7 forks source link

Validation failure in "repositories" #14

Closed samlikins closed 2 years ago

samlikins commented 4 years ago

In the Disabling Packagist.org section of the Composer documentation, it's specified that the following can be used in the "repositories" section.

    {
        "packagist.org": false
    }

However, when using this extension, the previous snippet causes two "Missing property" problems; one for "type" and the other for "url". I attempted to locate the JSON schema used in this extension with no luck. I'm not sure how validation of the composer.json file is performed, however this does need to be corrected.

ikappas commented 2 years ago

@samlikins To disable packagist.org repositories you should have something like this in your composer.json

    "repositories": [
        {
            "packagist.org": false
        }
    ],

Schema validation stopped working at some point but now that version 0.8.0 is out with updated json schema validation it is working again, so I am closing this issue.