infira/

openapi-model-generator

该软件包最新版本(dev-master)没有提供许可证信息。

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

This package is auto-updated.

Last update: 2024-09-22 01:41:31 UTC


README

#安装

foo@bar:~$ composer global require infira/openapi-model-generator
foo@bar:~$ omg /path/to/your/config.yaml

#配置

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