Add support for the x-order extension.#627
Closed
psyhatter wants to merge 1 commit intooapi-codegen:masterfrom
Closed
Add support for the x-order extension.#627psyhatter wants to merge 1 commit intooapi-codegen:masterfrom
psyhatter wants to merge 1 commit intooapi-codegen:masterfrom
Conversation
|
I am think readme must be updated too... |
b36f004 to
a17b087
Compare
Fix for oapi-codegen#458. Can be used when you need to set the order of fields in the model: ```yaml NewPet: type: object required: - name properties: name: type: string x-order: 1 tag: type: string x-order: 2 ```
a17b087 to
2d3fe35
Compare
Contributor
|
While this works, could it be simplified to just an NewPet:
type: object
required:
- name
properties:
x-ordered: true
name:
type: string
tag:
type: stringThis then uses the order of the properties, without having to put a flag on every field? Alternatively a configuration flag might be nice, so you don't have to scatter |
|
Hi, all those referenced commits don't seem to exists anymore? |
Contributor
|
I created this PR #1190 based off this one, resolving issues with master and minor refactors |
Member
|
Closed by #1190 |
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix for #458.
Can be used when you need to set the order of fields in the model: