New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Composer 1.4.0 composer.json does not match the expected JSON schema: #6238
Comments
|
+1 |
1 similar comment
|
+1 |
|
The reason is you didn't specify a valid URL for the PEAR repo: Add https:// and all will be well: |
|
@Seldaek What about this configuration? It used to work in 1.3.0. |
|
@jordi12100 ok that one was indeed a bug on our end. Should be fixed in latest snapshot, try with |
|
Thanks for the fast support. It's all working now. |
|
@Seldaek thank you! |
|
I have the following config: My test build add other repo to the list, running something like: After this command, my composer config is set to: Running any type of composer command like |
|
hmm, the issue is the conversion between array-based and object-based repository (and this stricter validation allowed to discover a bug in |
|
both work though AFAIK.. As a workaround you can probably do We probably need to fix this in the config command though :) |
|
@jkribeiro please report a new issue for this. |
|
Issue created #6245 |
This issue started when I upgraded to version 1.4.0
My
composer.json:{ "name": "dash/dash-platform", "description": "The full meal deal", "config" : { "secure-http": false }, "license": "proprietary", "type": "project", "minimum-stability": "stable", "repositories": [ { "type": "pear", "url": "pear.php.net" } ], "require": { "php": ">=5.6.0", "ext-curl": "*", "ext-json": "*", "ext-imagick": "*", "ext-xml": "*", "ext-xsl": "*", "ext-dom": "*", "ext-pcntl": "*", "google/recaptcha": "~1.1", "nesbot/carbon": "~1.14", "aws/aws-sdk-php": "2.*", "symfony/http-foundation": "2.*", "symfony/dependency-injection": "2.*", "symfony/http-kernel": "2.*", "symfony/yaml": "2.*", "symfony/event-dispatcher": "2.*", "doctrine/cache": "*", "monolog/monolog": "^1.13@dev", "smarty/smarty": "3.1.29", "tecnickcom/tcpdf": "6.0.*", "facebook/php-sdk-v4" : "4.0.*", "phpunit/phpunit": "~4.7", "phpunit/php-invoker": "*", "phpunit/dbunit": ">=1.2", "phpunit/phpunit-selenium": ">=1.2", "phpunit/phpunit-story": "1.0.*", "pear-pear.php.net/pear": "*", "pear-pear.php.net/image_barcode2": "*", "pear-pear.php.net/validate": "*", "pear-pear.php.net/validate_us": "*", "pear-pear.php.net/validate_ca": "*", "pear-pear.php.net/pager": "*", "pear-pear.php.net/spreadsheet_excel_writer": "*", "pear-pear.php.net/xml_query2xml": "*", "pear-pear.php.net/mail": "*", "pear-pear.php.net/mail_mime": "*", "pear-pear.php.net/services_shorturl": "*", "pear-pear.php.net/structures_datagrid": "*", "pear-pear.php.net/structures_datagrid_datasource_mdb2": "*", "pear-pear.php.net/structures_datagrid_datasource_array": "*", "pear-pear.php.net/structures_datagrid_renderer_xls": "*", "pear-pear.php.net/structures_datagrid_renderer_htmltable": "*", "pear-pear.php.net/structures_datagrid_renderer_pager": "*", "pear-pear.php.net/structures_datagrid_renderer_csv": "*", "pear-pear.php.net/mdb2": "*", "pear-pear.php.net/mdb2_driver_mysql": "*", "pear-pear.php.net/mdb2_driver_mysqli": "*", "pear-pear.php.net/html_common": "*", "pear-pear.php.net/html_table": "*", "php-console/php-console": "3.*", "psr/http-message": "1.0", "jaspersoft/rest-client": "dev-master#32dc45485030c6339e636c309cd5280af6479bf4", "phpmailer/phpmailer": "~5.2", "symfony/options-resolver": "2.*", "symfony/console": "3.2.3", "symfony/finder": "^3.0", "jdorn/sql-formatter": "*", "phpunit/phpunit-mock-objects": "~2.3", "symfony/process": "^3.1", "twig/twig": "1.25.*", "guzzlehttp/guzzle": "~6.0" }, "scripts": { "post-install-cmd": [ "php security-checker.phar security:check ./composer.lock" ], "post-update-cmd": [ "php security-checker.phar security:check ./composer.lock" ] }, "require-dev": { "filp/whoops": "^2.1", "symfony/var-dumper": "^3.0" } }When I run this command:
I get the following output...same when running diagnose:
The text was updated successfully, but these errors were encountered: