acacode/swagger-typescript-api

The option --silent is not honoured in version 13.0.22

m4rt1nn opened this issue · 0 comments

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