diff --git a/jane-php/json-schema/6.0/bin/jane-json-schema-generate b/jane-php/json-schema/6.0/bin/jane-json-schema-generate new file mode 100755 index 00000000..7fa9edfc --- /dev/null +++ b/jane-php/json-schema/6.0/bin/jane-json-schema-generate @@ -0,0 +1,15 @@ +#!/usr/bin/env php + __DIR__ . '/../config/jane/json_schema.php'], $command->getDefinition()); + +$command->execute($inputArray, new NullOutput()); diff --git a/jane-php/json-schema/6.0/config/jane/json_schema.php b/jane-php/json-schema/6.0/config/jane/json_schema.php new file mode 100644 index 00000000..83506b6c --- /dev/null +++ b/jane-php/json-schema/6.0/config/jane/json_schema.php @@ -0,0 +1,8 @@ + __DIR__ . '/json-schema.json', + 'root-class' => 'MyModel', + 'namespace' => 'MyApp\Library\Generated', + 'directory' => __DIR__ . '/../../generated', +]; diff --git a/jane-php/json-schema/6.0/config/packages/jane.yaml b/jane-php/json-schema/6.0/config/packages/jane.yaml new file mode 100644 index 00000000..4bc2f383 --- /dev/null +++ b/jane-php/json-schema/6.0/config/packages/jane.yaml @@ -0,0 +1,6 @@ +services: + _defaults: + autowire: true + autoconfigure: true + +# MyApp\Library\Generated\Normalizer\JaneObjectNormalizer: null diff --git a/jane-php/json-schema/6.0/manifest.json b/jane-php/json-schema/6.0/manifest.json new file mode 100644 index 00000000..a55f0fce --- /dev/null +++ b/jane-php/json-schema/6.0/manifest.json @@ -0,0 +1,9 @@ +{ + "copy-from-recipe": { + "bin/": "%BIN_DIR%/", + "config/": "%CONFIG_DIR%/" + }, + "conflict": { + "symfony/symfony": "<5.0" + } +} diff --git a/jane-php/json-schema/6.0/post-install.txt b/jane-php/json-schema/6.0/post-install.txt new file mode 100644 index 00000000..2654ca54 --- /dev/null +++ b/jane-php/json-schema/6.0/post-install.txt @@ -0,0 +1,12 @@ + + JanePHP - JSON Schema + + + * Finish package configuration: + 1. Configure config/jane/json_schema.php with your specification details + 2. Run bin/jane-json-schema-generate + 3. Add generated/ directory to your composer autoload definition (eg. "MyApp\\Library\\Generated\\": "generated/") + 4. Open config/packages/jane.yaml and replace MyApp\Library\Generated\ namespace with your generated namespace. + 5. Then remove line comments + +Documentation: https://jane.readthedocs.io/en/latest/ diff --git a/jane-php/open-api-common/6.0/bin/jane-open-api-generate b/jane-php/open-api-common/6.0/bin/jane-open-api-generate new file mode 100644 index 00000000..ab6ef287 --- /dev/null +++ b/jane-php/open-api-common/6.0/bin/jane-open-api-generate @@ -0,0 +1,16 @@ +#!/usr/bin/env php + __DIR__ . '/../config/jane/open_api.php'], $command->getDefinition()); + +$command->execute($inputArray, new NullOutput()); diff --git a/jane-php/open-api-common/6.0/config/jane/open_api.php b/jane-php/open-api-common/6.0/config/jane/open_api.php new file mode 100644 index 00000000..cc34865e --- /dev/null +++ b/jane-php/open-api-common/6.0/config/jane/open_api.php @@ -0,0 +1,7 @@ + __DIR__ . '/open-api.yaml', + 'namespace' => 'MyApp\Library\Generated', + 'directory' => __DIR__ . '/../../generated', +]; diff --git a/jane-php/open-api-common/6.0/config/packages/jane.yaml b/jane-php/open-api-common/6.0/config/packages/jane.yaml new file mode 100644 index 00000000..4bc2f383 --- /dev/null +++ b/jane-php/open-api-common/6.0/config/packages/jane.yaml @@ -0,0 +1,6 @@ +services: + _defaults: + autowire: true + autoconfigure: true + +# MyApp\Library\Generated\Normalizer\JaneObjectNormalizer: null diff --git a/jane-php/open-api-common/6.0/manifest.json b/jane-php/open-api-common/6.0/manifest.json new file mode 100644 index 00000000..a55f0fce --- /dev/null +++ b/jane-php/open-api-common/6.0/manifest.json @@ -0,0 +1,9 @@ +{ + "copy-from-recipe": { + "bin/": "%BIN_DIR%/", + "config/": "%CONFIG_DIR%/" + }, + "conflict": { + "symfony/symfony": "<5.0" + } +} diff --git a/jane-php/open-api-common/6.0/post-install.txt b/jane-php/open-api-common/6.0/post-install.txt new file mode 100644 index 00000000..2f234739 --- /dev/null +++ b/jane-php/open-api-common/6.0/post-install.txt @@ -0,0 +1,12 @@ + + JanePHP - JSON Schema + + + * Finish package configuration: + 1. Configure config/jane/open_api.php with your specification details + 2. Run bin/jane-open-api-generate + 3. Add generated/ directory to your composer autoload definition (eg. "MyApp\\Library\\Generated\\": "generated/") + 4. Open config/packages/jane.yaml and replace MyApp\Library\Generated\ namespace with your generated namespace. + 5. Then remove line comments + +Documentation: https://jane.readthedocs.io/en/latest/