valgene_cli 1.0.9 copy "valgene_cli: ^1.0.9" to clipboard
valgene_cli: ^1.0.9 copied to clipboard

outdated

Valgene (Validation Generator) generates validator and Dto boiler plate code from your OpenAPI specs.

example/README.md

Example 1 #

generate validator and DTO for the PetStore petstore-expanded.yaml

step 1 download the OpenAPI specification file: #

wget https://raw.githubusercontent.com/valgene/valgene-cli/master/example/petstore-expanded.yaml

step 2 run valgene and let the code generate: #

valgene --template php5.5 --spec petstore-expanded.yaml --option 'php.namespace:\My\PetStore\Api'

Example 2 Payload with array of Objects #

generate validator and DTO for the PetStore container-types.yaml that shows how an array of Objects is used.

step 1 download the OpenAPI specification file: #

wget https://raw.githubusercontent.com/valgene/valgene-cli/master/example/container-types.yaml

step 2 run valgene and let the code generate: #

valgene --template php5.5 --spec container-types.yaml --option 'php.namespace:\My\PetStore\Api'
0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

Valgene (Validation Generator) generates validator and Dto boiler plate code from your OpenAPI specs.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

args, logging, meta, mustache, recase, resource, yaml

More

Packages that depend on valgene_cli