infira/openapi-model-generator

There is no license information available for the latest version (dev-master) of this package.

dev-master 2021-12-30 17:42 UTC

This package is auto-updated.

Last update: 2024-04-22 00:52:38 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