infira / openapi-model-generator
There is no license information available for the latest version (v2.0) of this package.
v2.0
2024-12-09 12:52 UTC
Requires
- php: >=8.1
- cebe/php-openapi: 1.7.0
- guzzlehttp/psr7: 2.*
- illuminate/support: ~9
- infira/console: v1.0
- nette/php-generator: v3.6.9
This package is auto-updated.
Last update: 2026-03-09 16:05:01 UTC
README
#Install
foo@bar:~$ composer global require infira/openapi-model-generator
foo@bar:~$ omg /path/to/your/config.yaml
#Config
destination: /path/to/create/modeles/into
spec: /swagger.yaml
mandatoryResponseProperties: true
rootNamespace: 'App\oam'
#pathNamesapceTemplate : '{tags[0]}/{method}/{path[1:*]}/{operationID}?{path[last]}'
# when object or property has nullable and default is not defined then handle default as null
nullableDefaultNull: true