-
-
Notifications
You must be signed in to change notification settings - Fork 448
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
openapi3gen: add CreateComponentSchemas
option to export object schemas to components
#914
Closed
Closed
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
27f199f
Add ability to export object schemas to components
EnriqueL8 89d9be2
feat: Add ability to ignore exporting top level schema
EnriqueL8 b5c51e1
Update docs
EnriqueL8 63a1f28
fix test format
EnriqueL8 2cc5392
type name builder
sskserk 37ccde6
Merge pull request #2 from sskserk/type_name_builder
EnriqueL8 341c02f
Add docs
EnriqueL8 dbc7a0c
fix tests and sub type
EnriqueL8 0c6163e
Add support to ignore exporting generics
EnriqueL8 91ccfd6
Update docs
EnriqueL8 b95567d
renamed sub package; created test
sskserk a986d00
reformatted code
sskserk 0a29359
Merge pull request #3 from sskserk/type_name_builder
EnriqueL8 1093a28
Update docs
EnriqueL8 749d258
extend generic test
EnriqueL8 9be388a
clean up
EnriqueL8 223fb55
format imports sequence
sskserk 71785f8
Merge pull request #4 from sskserk/add_components_schemas
EnriqueL8 3436048
fix trimming for schema
EnriqueL8 0ac1691
Merge remote-tracking branch 'origin/master' into add_components_schemas
EnriqueL8 68678de
fix schema type
EnriqueL8 eb85980
fix check for object
EnriqueL8 e0111a1
Rename fields to export
EnriqueL8 a357586
fix docs
EnriqueL8 0883c33
fix: exporting schemas that are maps
EnriqueL8 7a9b932
address comment
sskserk 98749de
Merge pull request #6 from sskserk/type_name_builder
EnriqueL8 cfcfe42
Review comments and fixes
EnriqueL8 3f39f82
Exclude subpkg docs
EnriqueL8 83b175e
Fix linting
EnriqueL8 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Empty file.
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package subpkg | ||
|
||
type Child struct { | ||
Name string `yaml:"name"` | ||
} |
This file contains 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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about just checking that the last rune is
]
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be an array in that case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah yes, then
runes[-1] == ']' && runes[-2] != '['