question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Typescript][Angular] Disabling `authMethods` not supported?

See original GitHub issue
Description

I’m trying to generate Angular code but with some customizations. For example, I want to skip authenticate part in the service by setting authMethods to false in the configuration file. But this is not respected - the authentication code is still there.

Is it possible? Am I missing something?

openapi-generator version

3.3.4

OpenAPI declaration file content or url
Command line used for generation

java -jar ..\openapi-generator-cli-3.3.4.jar generate -g typescript-angular -i pet.yml -o .\temp --skip-validate-spec -c config.json

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
mniciccommented, Feb 4, 2019

Ah… Understand! My assumptions was different… Thanks for the clarification.

The issue can be closed i think…

0reactions
macjohnnycommented, Feb 4, 2019

But should the decision-flow be put in different direction - to give control over the generating the code?

given the specification, the options should help to control variants of code generation. but the options should not override definitions imposed by the specification, since it is by definition that the requirements for the api communication are in the specification.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular 2 Basic Authentication not working - Stack Overflow
I'm trying to connect/ do a POST request to an API with Angular2, It's a very simple API with a Basic Authentication password....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found