You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+20-2
Original file line number
Diff line number
Diff line change
@@ -28,10 +28,10 @@ If you're opening a PR, keep in mind Github will validate code style (PSR1/PSR2)
28
28
29
29
This generator works with PHP 7.4 so either you need to have it locally installed or you can use any php 7.4 docker image to run phpunit, phpstan, php-cs-fixer etc.
30
30
31
-
To make sure your code is following the correct style, run:
31
+
To make sure your code is following the correct style, run (or check `make` to run these tasks through php 7.4 docker image):
32
32
33
33
```
34
-
$ ./vendor/bin/php-cs-fixer fix src
34
+
$ ./vendor/bin/php-cs-fixer fix .
35
35
```
36
36
37
37
To statically analyse your code, run:
@@ -46,6 +46,24 @@ To run tests:
46
46
$ ./vendor/bin/phpunit
47
47
```
48
48
49
+
After doing your changes, you can validate it by using your modified generator with an actual Open API specification file. To do that, you must generate your own local Docker image of this generator and use it with any spec you may have:
50
+
51
+
```
52
+
$ docker build -t my-api-client-generator .
53
+
```
54
+
55
+
Then run the same command to build your API client but replacing `dhlabs/api-client-generator` with `my-api-client-generator`. For example:
Discussions must take place on this repository's [Issues](https://github.com/DoclerLabs/api-client-generator/issues) and [Pull Requests](https://github.com/DoclerLabs/api-client-generator/pulls) sections. Anybody is welcome to join these conversations.
Copy file name to clipboardExpand all lines: README.md
+6-3
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# OpenAPI SDK generator - API client generator
2
2
3
-
API client generator is a console application capable of auto-generating an API client based on OpenAPI specificationaccording to PHP best practices, and your code style standards.
3
+
API client generator is a console application capable of auto-generating a [PSR18](https://www.php-fig.org/psr/psr-18/)/[PSR7](https://www.php-fig.org/psr/psr-7/) compliant API client based on [OpenAPI v3](https://swagger.io/specification/) specification according to PHP best practices and your code style standards.
0 commit comments