Closed dpratt3 closed 2 years ago
swagger-codegen
should create an api
directory. It looks like swagger-codegen
isn't running properly.
When I run it, it runs as:
> swagger-codegen generate --lang python -DpackageName=pyhfcus --input-spec ../../curation-swagger-spec.yaml --output api
17:28:22.321 [Thread-1] WARN i.s.c.v.i.CodegenIgnoreProcessor - Output directory does not exist, or is inaccessible. No file (.swagger-codegen-ignore) will be evaluated.
17:28:22.613 [Thread-1] INFO i.s.codegen.v3.AbstractGenerator - writing file /Users/pbashyal/bioinformatics/phycus/client/python/api/pyhfcus/models/access_data.py
17:28:22.621 [Thread-1] INFO i.s.codegen.v3.AbstractGenerator - writing file /Users/pbashyal/bioinformatics/phycus/client/python/api/test/test_access_data.py
17:28:22.625 [Thread-1] INFO i.s.codegen.v3.AbstractGenerator - writing file /Users/pbashyal/bioinformatics/phycus/client/python/api/docs/AccessData.md
17:28:22.663 [Thread-1] INFO i.s.codegen.v3.AbstractGenerator - writing file /Users/pbashyal/bioinformatics/phycus/client/python/api/pyhfcus/models/cohort_data.py
17:28:22.670 [Thread-1] INFO i.s.codegen.v3.AbstractGenerator - writing file /Users/pbashyal/bioinformatics/phycus/client/python/api/test/test_cohort_data.py
17:28:22.677 [Thread-1] INFO i.s.codegen.v3.AbstractGenerator - writing file /Users/pbashyal/bioinformatics/phycus/client/python/api/docs/CohortData.md
17:28:22.709 [Thread-1] INFO i.s.codegen.v3.AbstractGenerator - writing file /Users/pbashyal/bioinformatics/phycus/client/python/api/pyhfcus/models/cohort_request.py
17:28:22.714 [Thread-1] INFO i.s.codegen.v3.AbstractGenerator - writing file /Users/pbashyal/bioinformatics/phycus/client/python/api/test/test_cohort_request
What OS and version of swagger-codegen
are you using ?
Mine is:
> swagger-codegen version
3.0.29
I was able to fix the issue; it was a problem with my local installation of swagger-codegen. I am using Ubuntu 20.04. After switching from the stable version of swagger-codegen to 3.0.30, it's working as expected. Thanks!
make