-
Notifications
You must be signed in to change notification settings - Fork 6k
[Typescript-Node] Add Support for useQuerystring Request Option #2905
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
… going to match the enum name - now that we camelCase variable names this cuts down on the amount of enum escaping we have.
…hub.com/Vrolijkx/swagger-codegen into feature/integration-test
…into travis # Conflicts: # samples/client/petstore/go/go-petstore/.travis.yml
… into feature/integration-test
…roperties if also other properties defined.
Adds a .swagger-codegen-ignore file with instructions and examples. The .swagger-codegen-ignore file is treated as a supporting file. Every project will generate a .swagger-codegen-ignore file containing instructions and examples. This also adds support for 'common' files (defaults like .swagger-codegen-ignore). In the case of the ignore file, a generator may include a compiled template ignore file which outputs to the outputDir folder as .swagger-codegen-ignore and the default file generation will honor the already generated file. The rules for .swagger-codegen-ignore are a simple subset of what you'd find in .gitignore or .dockerignore. It supports recursive matching (**), simple matching (*), matching files in the project root (/filename), matching against directories (dir/), negation rules (!previously/excluded/**/file).
…ues speaking to the petstore service - has to do w/ Accept/content type changes
[Ruby] update Ruby API client to use apache v2 license
[Ruby] add apache v2 license to remaining ruby files (test, spec, etc)
[Ruby] add licence template for ruby api client
add custom generator example to readme
|
We are now versioning the output javascript files (client.js, api.js, etc)? Shouldn't these be ignored and the ts files be the source of truth? Will update things how I think they should be and then await feedback. |
…clude rather than files. Add gitignore for output files.
…pes. Update client to not use finally since this doesn't exist on a node js Promise.
|
Looks like the rebase blew up this pr. |
|
@pixelshaded no worry. I'll cherry-pick your commits later today. |
|
@pixelshaded If we only version the |
|
|
@pixelshaded |
|
Hmmm. I think I must be missing something. Maybe some context? Are we publishing every npm module in samples or something? If so, why? I thought petstore was essentially an example API. I'm finding it hard to create a scenario in my head where typescript definitions would be useful to a consumer who isn't using typescript. If they aren't using the compiler, they don't have intellisense. There isn't anything linking their javascript client to the typescript code. They would essentially be reading the swagger spec as a typescript definition...why not just read the swagger spec? Why not use other libraries like mentioned in the docs (https://github.com/swagger-api/swagger-codegen#where-is-javascript)? Definitely feels like we are trying to cater to an edge case here. If I was a new user looking for javascript codegen and wasn't using typescript, I feel like targeting tyepscript-node would be the last thing I'd do. |
|
@pixelshaded I'll do the cherry-pick over the weekend. @pixelshaded @Vrolijkx very good discussion. Please keep it going. |
|
At the moment we don't publish the generated clients but it would be nice if we did. It would be like publishing a generated java client to maven repository and then just add the correct dependency to your consumer and your are ready to use it. This makes it very easy for consumers of your client. We could do the same thing with npm than a consumer doesn't need to copy paste the generated code in his project but just add the correct npm dependency an he's good to go. |
[Typescript-Node] Add Support for useQuerystring Request Option #2905
|
Closed via #2989 |
The request node module normally sends arrays in the querystring like so
However Web API doesn't know how to bind that to the model. Web API supports this method of serialization:
The request module allows for you to override this default functionality so you can produce the second outcome. This pull request adds support for setting useQuerystring on the instance of the api so that all future calls can use the second method of serialization.