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

This package is auto-updated.

Last update: 2025-03-09 13:36:51 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