Use YAML for specification
YAML is simpler for human to read/write than JSON, at least because it is less verbose. It is also richer as it let describe with comment and have multiline support.
This commit is contained in:
8
Makefile
8
Makefile
@@ -5,13 +5,13 @@ download: swagger-codegen-cli.jar
|
||||
swagger-codegen-cli.jar:
|
||||
wget https://repo1.maven.org/maven2/io/swagger/codegen/v3/swagger-codegen-cli/3.0.20/swagger-codegen-cli-3.0.20.jar -O swagger-codegen-cli.jar
|
||||
|
||||
doc: openkarotz-openapi.json
|
||||
doc: openkarotz-openapi.yaml
|
||||
mkdir -p html
|
||||
java -jar swagger-codegen-cli.jar generate -i openkarotz-openapi.json -l html -o html
|
||||
java -jar swagger-codegen-cli.jar generate -i openkarotz-openapi.yaml -l html -o html
|
||||
|
||||
python: openkarotz-openapi.json
|
||||
python: openkarotz-openapi.yaml
|
||||
mkdir -p python
|
||||
java -jar swagger-codegen-cli.jar generate -i openkarotz-openapi.json -l python -o python -c config-python.json
|
||||
java -jar swagger-codegen-cli.jar generate -i openkarotz-openapi.yaml -l python -o python -c config-python.json
|
||||
|
||||
clean:
|
||||
rm -rf doc python
|
||||
|
||||
Reference in New Issue
Block a user