Skip to content

Composer json and schema fix - #1

Merged
justinrainbow merged 2 commits into
jsonrainbow:masterfrom
digitalkaoz:composer_json
Dec 9, 2011
Merged

Composer json and schema fix#1
justinrainbow merged 2 commits into
jsonrainbow:masterfrom
digitalkaoz:composer_json

Conversation

@digitalkaoz

Copy link
Copy Markdown
Contributor
  • fixed README so it outputs a nicer format
  • fixed required/optional optional is now the default value
  • added a composer.json

justinrainbow added a commit that referenced this pull request Dec 9, 2011
@justinrainbow
justinrainbow merged commit c5d3203 into jsonrainbow:master Dec 9, 2011
@justinrainbow

Copy link
Copy Markdown
Collaborator

Thanks for adding composer support

@igorw

igorw commented Dec 9, 2011

Copy link
Copy Markdown
Contributor

Damn, now we have a mess. :) I started a larger refactoring here (which also fixes the optional thing): https://github.com/igorw/json-schema

@justinrainbow Could you add me on jabber? It's igor.wiedler@jabber.org.

@digitalkaoz

Copy link
Copy Markdown
Contributor Author

yeah sorry @igorw pulled first then saw your comment :/ maybe you could also do a pull, so we get one base?!

@igorw

igorw commented Dec 9, 2011

Copy link
Copy Markdown
Contributor

Done, I hope I didn't mess anything up.

@justinrainbow

Copy link
Copy Markdown
Collaborator

@igorw added you on jabber. Also, I've added this project to travis-ci.org. Looks like this PR ended up making one of the tests fail - are you about ready to make a PR for your changes?

@igorw

igorw commented Dec 10, 2011

Copy link
Copy Markdown
Contributor

Done #2. EDIT: test is not failing on my branch btw.

erayd referenced this pull request in erayd/json-schema Oct 5, 2017
patrickallaert added a commit to patrickallaert/json-schema that referenced this pull request Jun 17, 2021
As of PHP 8.1, the following notice could possibly appear:
Deprecated: strlen(): Passing null to parameter jsonrainbow#1 ($string) of type string is deprecated in ...
DannyvdSluijs pushed a commit that referenced this pull request Jul 3, 2026
Trying to run composer in a PHP build without ext-filter fails with:

    Error: Call to undefined function JsonSchema\Uri\filter_var()
    Fatal error: Uncaught Error: Call to undefined function JsonSchema\Uri\filter_var() in phar:///*redacted*/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/UriResolver.php:84
    Stack trace:
    #0 phar:///*redacted*/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/SchemaStorage.php(100): JsonSchema\Uri\UriResolver->resolve('*redacted*...', 'internal://prov...')
    #1 phar:///*redacted*/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/SchemaStorage.php(76): JsonSchema\SchemaStorage->expandRefs(Object(stdClass), 'internal://prov...')
    #2 phar:///*redacted*/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Validator.php(67): JsonSchema\SchemaStorage->addSchema('internal://prov...', Object(stdClass))
    #3 phar:///*redacted*/bin/composer/src/Composer/Json/JsonFile.php(258): JsonSchema\Validator->validate(Object(stdClass), Object(stdClass))
    #4 phar:///*redacted*/bin/composer/src/Composer/Json/JsonFile.php(214): Composer\Json\JsonFile::validateJsonSchema('./composer.json', Object(stdClass), 1, '*redacted*...')
    #5 phar:///*redacted*/bin/composer/src/Composer/Factory.php(313): Composer\Json\JsonFile->validateSchema(1)
    #6 phar:///*redacted*/bin/composer/src/Composer/Factory.php(631): Composer\Factory->createComposer(Object(Composer\IO\ConsoleIO), './composer.json', true, '*redacted*...', true, false)
    #7 phar:///*redacted*/bin/composer/src/Composer/Console/Application.php(629): Composer\Factory::create(Object(Composer\IO\ConsoleIO), NULL, true, false)
    #8 phar:///*redacted*/bin/composer/src/Composer/Console/Application.php(538): Composer\Console\Application->getComposer(false, true)
    #9 phar:///*redacted*/bin/composer/src/Composer/Console/Application.php(485): Composer\Console\Application->hintCommonErrors(Object(Error), Object(Symfony\Component\Console\Output\ConsoleOutput))
    #10 phar:///*redacted*/bin/composer/vendor/symfony/console/Application.php(171): Composer\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
    #11 phar:///*redacted*/bin/composer/src/Composer/Console/Application.php(141): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
    #12 phar:///*redacted*/bin/composer/bin/composer(112): Composer\Console\Application->run()
    #13 /*redacted*/bin/composer(29): require('*redacted*...')
    #14 {main}
      thrown in phar:///*redacted*/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/UriResolver.php on line 84
    Error: Process completed with exit code 255.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants