acacode / swagger-typescript-api

Generate the API Client for Fetch or Axios from an OpenAPI Specification
MIT License
3.37k stars 361 forks source link

The option --silent is not honoured in version 13.0.22 #942

Closed m4rt1nn closed 1 month ago

m4rt1nn commented 1 month ago

It looks like the option --silent has no effect in version 13.0.22.

I verified the behaviour with the example yaml api-with-example.yaml (https://github.com/acacode/swagger-typescript-api/blob/main/tests/fixtures/schemas/v3.0/api-with-examples.yaml):

swagger-typescript-api --modular --module-name-first-tag --unwrap-response-data --axios -p ~/Downloads/api-with-examples.yaml -o /tmp --silent

The output in version 13.0.22 is

ℹ Code generator will use the default template for "api"                                                                                                                                                        
ℹ Code generator will use the default template for "routetypes"                                                                                                                                                 
ℹ try to get swagger by path "/home/marnij/Downloads/api-with-examples.yaml"                                                                                                                                    
ℹ start generating your typescript api                                                                                                                                                                          
✔ api file "http-client.ts" created in /tmp                                                                                                                                                                     
✔ api file "V2.ts" created in /tmp  

but in 13.0.16 there is no output (which is the closest previous version that I could get to work)

Regards,

Martin