Comments (1)
The best solution is to generate already formatted code.
This is actually more annoying to do than waiting for code generation.
We are operating on very big schemas in our example repos, 99.9% users are not affected.
It is pretty general problem for all code generators (and also linters), so I propose:
- Focus on solving this problem in general
- Optimize formatting
- Use concurrency
- And only then try to generate already formatted code
Anyway, this issue is low priority. IMO, problem with high resource consumption during compilation has bigger impact.
Also: fellows from ent proposed another idea: generate less code (e.g. use reflect-based json over fully code-generated, this can be done with jx
too), and same points apply to such optimization.
from ogen.
Related Issues (20)
- feat(gen): client request editor HOT 1
- Integer type not supported as a schema type. HOT 1
- gen: Error handler is bypassed when using convenient error feature
- Error in generating code from specification: discriminator unable to map
- gen: discriminator property is removed from structures HOT 3
- Request body: re-init raw request's body after reading-for-decode
- MultipleOf 1/100 validation: it seems that MultipleOf validation always fail for price values HOT 2
- encoding in RequestBody: properly support encoding in "RequestBody"
- Security Schemes: need configuration example
- gen: 404 Not Found for parameterized path HOT 1
- jx.DecodeStr passed unquoted string value and fails
- feat(gen): Generate single type for a parameter definition HOT 2
- Generating a single response structure for different methods using headers HOT 2
- Discriminator Inference: Not generating despite completely unique fields HOT 2
- Generator: Incorrect JSON Marshaller for Optional types if optional field is not set HOT 3
- CLI option to validate-only the schema
- [Misnamed Schema Object]: OpenAPI schema object name incorrectly being generated/used HOT 7
- External references don't work HOT 2
- Proposal: Allow grouping operations into separate handlers
- Custom types HOT 1
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 ogen.