Skip to content

Commit

Permalink
Switch to OpenAPI Tools for generation
Browse files Browse the repository at this point in the history
  • Loading branch information
WyriHaximus committed Nov 9, 2024
1 parent 133865f commit 1b07564
Show file tree
Hide file tree
Showing 98 changed files with 3,164 additions and 7,584 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,6 @@ generate-example-client-miele:

generate-test-client:
$(DOCKER_RUN) php ./bin/openapi-client-generator ./tests/openapi-client-petstore.yaml

generate-packages:
$(DOCKER_RUN) php ./vendor/bin/openapi-generator ./example/client-gitub-one.php
41 changes: 0 additions & 41 deletions bin/openapi-client-generator.source

This file was deleted.

21 changes: 10 additions & 11 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@
"nikic/php-parser": "^4.15",
"nunomaduro/termwind": "^1.15",
"ondram/ci-detector": "^4.1",
"openapi-tools/configuration": "dev-main",
"openapi-tools/contract": "dev-main",
"openapi-tools/gatherer": "dev-main",
"openapi-tools/generator": "dev-main",
"openapi-tools/generator-hydrator": "dev-main",
"openapi-tools/generator-schema": "dev-main",
"openapi-tools/generator-templates": "dev-main",
"openapi-tools/registry": "dev-main",
"openapi-tools/representation": "dev-main",
"openapi-tools/utils": "dev-main",
"phpstan/phpdoc-parser": "^1.22",
"pointybeard/reverse-regex": "1.0.0.3",
"psr/http-message": "^1.1 || ^2 || ^3",
Expand All @@ -35,7 +45,6 @@
"symfony/yaml": "^6.0",
"twig/twig": "^3.5",
"wyrihaximus/async-test-utilities": "^7.0",
"wyrihaximus/composer-update-bin-autoload-path": "^1",
"wyrihaximus/react-awaitable-observable": "^1.0",
"wyrihaximus/simple-twig": "^2.1",
"wyrihaximus/subsplit-tools": "dev-main"
Expand All @@ -51,9 +60,6 @@
"ApiClients\\Tests\\Tools\\OpenApiClientGenerator\\": "tests/unit/"
}
},
"bin": [
"bin/openapi-client-generator"
],
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
Expand All @@ -65,13 +71,6 @@
"php": "8.2.13"
}
},
"extra": {
"wyrihaximus": {
"bin-autoload-path-update": [
"bin/openapi-client-generator"
]
}
},
"scripts": {
"post-install-cmd": [
"composer normalize"
Expand Down
Loading

0 comments on commit 1b07564

Please sign in to comment.