-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
[codegen][Go] Fix compilation error of generated go code when schema is free form object #5391
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
Merged
wing328
merged 37 commits into
OpenAPITools:master
from
CiscoM31:go-experimental-free-form
Mar 26, 2020
Merged
Changes from 18 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
5721959
Fix code generation for free-form objects in go-experimental
sebastien-rosset 40470a6
Execute scripts in bin directory
sebastien-rosset 1d12a00
Add more use cases for open-ended types
sebastien-rosset 128b6ca
Add more use cases for open-ended types
sebastien-rosset 946bdc6
Add more use cases for open-ended types
sebastien-rosset 7af5f83
add code comments
sebastien-rosset f2e4418
Better name for test properties
sebastien-rosset de43542
handle scenario when type is arbitrary
sebastien-rosset 0c117c4
handle interface{} scenario
sebastien-rosset 9ba18ef
handle interface{} scenario
sebastien-rosset c5a29f5
add helper function isAnyType
sebastien-rosset 821eaeb
isAnyType function
sebastien-rosset 16259c7
implementation of isAnyType function
sebastien-rosset b0d0f4a
fix javadoc issue
sebastien-rosset 1f33e83
Merge branch 'master' of github.com:CiscoM31/openapi-generator into g…
sebastien-rosset 9471954
handle interface{} scenario
sebastien-rosset 48fac66
Merge remote-tracking branch 'origin' into go-experimental-free-form
sebastien-rosset 1661128
Merge remote-tracking branch 'origin' into go-experimental-free-form
sebastien-rosset ee2c1cc
use equals comparison instead of ==
sebastien-rosset 1323017
Merge branch 'master' of github.com:CiscoM31/openapi-generator into g…
sebastien-rosset 60529ee
resolve merge conflicts
sebastien-rosset 840a209
Merge branch 'master' of github.com:CiscoM31/openapi-generator into g…
sebastien-rosset 1668293
merge from master
sebastien-rosset 76ffa9e
merge from master
sebastien-rosset 5d7be16
Merge remote-tracking branch 'origin' into go-experimental-free-form
sebastien-rosset 4b714ad
Add code documentation
sebastien-rosset 6c5afdd
Merge branch 'master' of github.com:CiscoM31/openapi-generator into g…
sebastien-rosset 5cb8407
Merge branch 'master' of github.com:CiscoM31/openapi-generator into g…
sebastien-rosset 4db388f
add code comments, remove unused min/max attribute, fix equals method
sebastien-rosset 42cc09a
Handle 'anytype' use case
sebastien-rosset c70f531
add code comments
sebastien-rosset 49d833c
override postProcessModelProperty to set vendor extension
sebastien-rosset 2eeb4e5
Use vendorExtensions.x-golang-is-container
sebastien-rosset 6c4c5fc
fix compilation error of generated code
sebastien-rosset 9051376
Merge branch 'master' of github.com:CiscoM31/openapi-generator into g…
sebastien-rosset f736657
fix compilation error of generated code
sebastien-rosset 5d4796c
fix compilation error of generated code
sebastien-rosset 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
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
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
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
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
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
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,12 +10,12 @@ Name | Type | Description | Notes | |
| **StringProp** | Pointer to **NullableString** | | [optional] | ||
| **DateProp** | Pointer to **NullableString** | | [optional] | ||
| **DatetimeProp** | Pointer to [**NullableTime**](time.Time.md) | | [optional] | ||
| **ArrayNullableProp** | Pointer to [**[]map[string]interface{}**](map[string]interface{}.md) | | [optional] | ||
| **ArrayAndItemsNullableProp** | Pointer to [**[]map[string]interface{}**](map[string]interface{}.md) | | [optional] | ||
| **ArrayItemsNullable** | Pointer to [**[]map[string]interface{}**](map[string]interface{}.md) | | [optional] | ||
| **ObjectNullableProp** | Pointer to [**map[string]map[string]interface{}**](map[string]interface{}.md) | | [optional] | ||
| **ObjectAndItemsNullableProp** | Pointer to [**map[string]map[string]interface{}**](map[string]interface{}.md) | | [optional] | ||
| **ObjectItemsNullable** | Pointer to [**map[string]map[string]interface{}**](map[string]interface{}.md) | | [optional] | ||
| **ArrayNullableProp** | Pointer to **[]map[string]interface{}** | | [optional] | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was a bug before this PR. There is no markdown file "map[string]interface{}.md" |
||
| **ArrayAndItemsNullableProp** | Pointer to **[]map[string]interface{}** | | [optional] | ||
| **ArrayItemsNullable** | Pointer to **[]map[string]interface{}** | | [optional] | ||
| **ObjectNullableProp** | Pointer to **map[string]map[string]interface{}** | | [optional] | ||
| **ObjectAndItemsNullableProp** | Pointer to **map[string]map[string]interface{}** | | [optional] | ||
| **ObjectItemsNullable** | Pointer to **map[string]map[string]interface{}** | | [optional] | ||
|
|
||
| ## Methods | ||
|
|
||
|
|
||
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.
Uh oh!
There was an error while loading. Please reload this page.