forked from loafle/openapi-generator-original
* Remove package from sources * Add Mocker package * Add BaseModel Beside setters and getters this class implements three methods required for mocking: getOpenApiSchema, createFromData and jsonSerialize. BaseModel keeps all data values in $dataContainer like PHP client does. I don't see other way to support scalar models(enum for instance). That's why I've removed class variables generation. * Update documentation * Update PHPUnit section in readme * Add constant with models namespace This constant will be required for data deserialization when handling refs. * Refresh samples * Add samples generation config
5 lines
219 B
YAML
5 lines
219 B
YAML
generatorName: php-slim4
|
|
outputDir: samples/server/petstore/php-slim4
|
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
|
templateDir: modules/openapi-generator/src/main/resources/php-slim4-server
|