Comments (3)
I think you want the extension 'x-order', have a look at the example in the README.md
from oapi-codegen.
Yep, in this case the x-order
extension is what you want.
See also https://github.com/deepmap/oapi-codegen/tree/master/examples/extensions/xorder for an example of usage
from oapi-codegen.
@jamietanna I have tried with this x-order but still the order of the props didn't effected. They are still in alphabetic order irrespective of the order I gave.. Do I need to change anything else along with this..
from oapi-codegen.
Related Issues (20)
- docs: missing description for `compatibility` in JSON Schema
- feat: add an `engine` or `openapi-library` configuration item
- feat: provide a complex `overrides` configuration HOT 1
- feat: unique (+ more verbose) generated names
- feat(JSON Schema): improve validation to indicate that `strict-server` is required with a server
- Is there a way to customize the json tag names? HOT 4
- docs(examples): petstore readme is wrong
- x-order not retaining the order mentioned in spec HOT 3
- x-order not respected when using $ref HOT 1
- autogenerated code for Echo server throws errors with golang 1.21+ versions HOT 1
- Remove common path from generated function names
- Enum constants not prefixed with type name
- chore(tests): add better coverage of `mergeOpenapiSchemas`
- Make possible use values other than strings as discriminator
- requestBody with oneOf does not generate marshal/unmarshal union data
- Bug: Header parameter parsing with fiber generator
- Generating Struct with Embedded Imported Type
- swaggerSpec updated even when no spec changes HOT 1
- field std-http-server not found in type codegen.GenerateOptions 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 oapi-codegen.