mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-12 10:30:50 +00:00
* 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
42 lines
946 B
JSON
42 lines
946 B
JSON
{
|
|
"minimum-stability": "RC",
|
|
"repositories": [
|
|
{
|
|
"type": "vcs",
|
|
"url": "https://github.com/ybelenko/slim-token-authentication",
|
|
"no-api": true
|
|
}
|
|
],
|
|
"require": {
|
|
"php": "^7.2",
|
|
"slim/slim": "^4.5.0",
|
|
"dyorg/slim-token-authentication": "dev-slim4",
|
|
"ybelenko/openapi-data-mocker": "^1.0",
|
|
"ybelenko/openapi-data-mocker-server-middleware": "^1.0",
|
|
"slim/psr7": "^1.1.0"
|
|
},
|
|
"require-dev": {
|
|
"phpunit/phpunit": "^8.0 || ^9.0",
|
|
"overtrue/phplint": "^2.0.2",
|
|
"squizlabs/php_codesniffer": "^3.5"
|
|
},
|
|
"autoload": {
|
|
"psr-4": { "OpenAPIServer\\": [
|
|
"lib/",
|
|
"src/"
|
|
]}
|
|
},
|
|
"autoload-dev": {
|
|
"psr-4": { "OpenAPIServer\\": "test/" }
|
|
},
|
|
"scripts": {
|
|
"test": [
|
|
"phpunit"
|
|
],
|
|
"test-apis": "phpunit --testsuite Apis",
|
|
"test-models": "phpunit --testsuite Models",
|
|
"phpcs": "phpcs",
|
|
"phplint": "phplint ./ --exclude=vendor"
|
|
}
|
|
}
|