Comments (1)
I've been working on this recently. I raised a PR in my fork so you can see the changes:
I agree that the template code was too dirty to proceed with, so I've implemented it using helper-functions. It still needs some work, but let me know if this is going in the right direction because it would be great to merge this back.
I've added a new choice for the generate
command-line option called "richclient", which generates this new client code instead of the existing one (as a way to maintain backwards-compatibility).
from oapi-codegen.
Related Issues (20)
- docs: "what it's not good for"
- Support breaking out Anonymous Structs HOT 1
- echo strict server when content-type is Text/plain HOT 2
- docs: explain how to allow indexing (i.e. on GitHub) of generated code
- feat: generate ability to perform (expontential backoff) retries
- feat: add an `oapi-codegen-config-validator`
- feat: generate union types like Speakeasy does
- feat: allow not generating union types' `As...` or `From...` HOT 2
- Gin has no error types HOT 2
- Generating *interface{} in additionalProperties HOT 2
- Import Mappings not referencing correct variables. HOT 5
- Error output for "map key not found" errors missing trailing newline.
- docs(schema): add a deprecation offiically for `circular-reference-limit`
- Invalid code generated HOT 1
- Add ability to Include both `json` and `yaml` tags to the generated structs
- StrictMiddleware: Custom Error Handler has no access to modified context
- undefined: openapi3.CircularReferenceCounter with [email protected] HOT 2
- Support defaulting query parameter values when not supplied, and default is set.
- oapi-codegen is a program, not an importable package HOT 10
- Can't disable all generators HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oapi-codegen.