Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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 Feb 20, 2020
40470a6
Execute scripts in bin directory
sebastien-rosset Feb 20, 2020
1d12a00
Add more use cases for open-ended types
sebastien-rosset Feb 21, 2020
128b6ca
Add more use cases for open-ended types
sebastien-rosset Feb 21, 2020
946bdc6
Add more use cases for open-ended types
sebastien-rosset Feb 21, 2020
7af5f83
add code comments
sebastien-rosset Feb 21, 2020
f2e4418
Better name for test properties
sebastien-rosset Feb 21, 2020
de43542
handle scenario when type is arbitrary
sebastien-rosset Feb 21, 2020
0c117c4
handle interface{} scenario
sebastien-rosset Feb 21, 2020
9ba18ef
handle interface{} scenario
sebastien-rosset Feb 21, 2020
c5a29f5
add helper function isAnyType
sebastien-rosset Feb 21, 2020
821eaeb
isAnyType function
sebastien-rosset Feb 21, 2020
16259c7
implementation of isAnyType function
sebastien-rosset Feb 21, 2020
b0d0f4a
fix javadoc issue
sebastien-rosset Feb 21, 2020
1f33e83
Merge branch 'master' of github.com:CiscoM31/openapi-generator into g…
sebastien-rosset Feb 21, 2020
9471954
handle interface{} scenario
sebastien-rosset Feb 22, 2020
48fac66
Merge remote-tracking branch 'origin' into go-experimental-free-form
sebastien-rosset Feb 26, 2020
1661128
Merge remote-tracking branch 'origin' into go-experimental-free-form
sebastien-rosset Feb 29, 2020
ee2c1cc
use equals comparison instead of ==
sebastien-rosset Mar 1, 2020
1323017
Merge branch 'master' of github.com:CiscoM31/openapi-generator into g…
sebastien-rosset Mar 12, 2020
60529ee
resolve merge conflicts
sebastien-rosset Mar 17, 2020
840a209
Merge branch 'master' of github.com:CiscoM31/openapi-generator into g…
sebastien-rosset Mar 24, 2020
1668293
merge from master
sebastien-rosset Mar 24, 2020
76ffa9e
merge from master
sebastien-rosset Mar 24, 2020
5d7be16
Merge remote-tracking branch 'origin' into go-experimental-free-form
sebastien-rosset Mar 24, 2020
4b714ad
Add code documentation
sebastien-rosset Mar 24, 2020
6c5afdd
Merge branch 'master' of github.com:CiscoM31/openapi-generator into g…
sebastien-rosset Mar 25, 2020
5cb8407
Merge branch 'master' of github.com:CiscoM31/openapi-generator into g…
sebastien-rosset Mar 25, 2020
4db388f
add code comments, remove unused min/max attribute, fix equals method
sebastien-rosset Mar 25, 2020
42cc09a
Handle 'anytype' use case
sebastien-rosset Mar 25, 2020
c70f531
add code comments
sebastien-rosset Mar 25, 2020
49d833c
override postProcessModelProperty to set vendor extension
sebastien-rosset Mar 25, 2020
2eeb4e5
Use vendorExtensions.x-golang-is-container
sebastien-rosset Mar 25, 2020
6c4c5fc
fix compilation error of generated code
sebastien-rosset Mar 25, 2020
9051376
Merge branch 'master' of github.com:CiscoM31/openapi-generator into g…
sebastien-rosset Mar 25, 2020
f736657
fix compilation error of generated code
sebastien-rosset Mar 25, 2020
5d4796c
fix compilation error of generated code
sebastien-rosset Mar 25, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add more use cases for open-ended types
  • Loading branch information
sebastien-rosset committed Feb 21, 2020
commit 128b6cafdb4f56f9a29ed02dbb1daab085e87751
Original file line number Diff line number Diff line change
Expand Up @@ -1252,15 +1252,19 @@ components:
description: User Status
arbitraryObject:
type: object
description: test code generation for objects, i.e. maps of strings to values.
description: test code generation for objects
Value must be a map of strings to values. It cannot be the null value.
arbitraryNullableObject:
type: object
description: test code generation for nullable objects, i.e. maps of strings to values or the 'null' value.
description: test code generation for nullable objects.
Value must be a map of strings to values or the 'null' value.
nullable: true
arbitraryType:
description: test code generation for any type, can be any value - string, number, boolean, array or object.
description: test code generation for any type
Value can be any type - string, number, boolean, array or object.
arbitraryNullableType:
description: test code generation for any type, can be any value - string, number, boolean, array or object.
description: test code generation for any type
Value can be any type - string, number, boolean, array or object.
nullable: true
xml:
name: User
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1329,18 +1329,19 @@ components:
format: int32
type: integer
arbitraryObject:
description: test code generation for objects, i.e. maps of strings to values.
description: test code generation for objects Value must be a map of strings
to values. It cannot be the null value.
type: object
arbitraryNullableObject:
description: test code generation for nullable objects, i.e. maps of strings
to values or the 'null' value.
description: test code generation for nullable objects. Value must be a
map of strings to values or the 'null' value.
nullable: true
type: object
arbitraryType:
description: test code generation for any type, can be any value - string,
description: test code generation for any type Value can be any type - string,
number, boolean, array or object.
arbitraryNullableType:
description: test code generation for any type, can be any value - string,
description: test code generation for any type Value can be any type - string,
number, boolean, array or object.
nullable: true
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ Name | Type | Description | Notes
**Password** | Pointer to **string** | | [optional]
**Phone** | Pointer to **string** | | [optional]
**UserStatus** | Pointer to **int32** | User Status | [optional]
**ArbitraryObject** | Pointer to [**map[string]interface{}**](.md) | test code generation for objects, i.e. maps of strings to values. | [optional]
**ArbitraryNullableObject** | Pointer to [**map[string]interface{}**](.md) | test code generation for nullable objects, i.e. maps of strings to values or the 'null' value. | [optional]
**ArbitraryType** | Pointer to [**map[string]interface{}**](map[string]interface{}.md) | test code generation for any type, can be any value - string, number, boolean, array or object. | [optional]
**ArbitraryNullableType** | Pointer to [**NullableMap[string]interface{}**](map[string]interface{}.md) | test code generation for any type, can be any value - string, number, boolean, array or object. | [optional]
**ArbitraryObject** | Pointer to [**map[string]interface{}**](.md) | test code generation for objects Value must be a map of strings to values. It cannot be the null value. | [optional]
**ArbitraryNullableObject** | Pointer to [**map[string]interface{}**](.md) | test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. | [optional]
**ArbitraryType** | Pointer to [**map[string]interface{}**](map[string]interface{}.md) | test code generation for any type Value can be any type - string, number, boolean, array or object. | [optional]
**ArbitraryNullableType** | Pointer to [**NullableMap[string]interface{}**](map[string]interface{}.md) | test code generation for any type Value can be any type - string, number, boolean, array or object. | [optional]

## Methods

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ type User struct {
Phone *string `json:"phone,omitempty"`
// User Status
UserStatus *int32 `json:"userStatus,omitempty"`
// test code generation for objects, i.e. maps of strings to values.
// test code generation for objects Value must be a map of strings to values. It cannot be the null value.
ArbitraryObject *map[string]interface{} `json:"arbitraryObject,omitempty"`
// test code generation for nullable objects, i.e. maps of strings to values or the 'null' value.
// test code generation for nullable objects. Value must be a map of strings to values or the 'null' value.
ArbitraryNullableObject *map[string]interface{} `json:"arbitraryNullableObject,omitempty"`
// test code generation for any type, can be any value - string, number, boolean, array or object.
// test code generation for any type Value can be any type - string, number, boolean, array or object.
ArbitraryType *map[string]interface{} `json:"arbitraryType,omitempty"`
// test code generation for any type, can be any value - string, number, boolean, array or object.
// test code generation for any type Value can be any type - string, number, boolean, array or object.
ArbitraryNullableType *NullableMap[string]interface{} `json:"arbitraryNullableType,omitempty"`
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ Name | Type | Description | Notes
**password** | **str** | | [optional]
**phone** | **str** | | [optional]
**user_status** | **int** | User Status | [optional]
**arbitrary_object** | **bool, date, datetime, dict, float, int, list, str** | test code generation for objects, i.e. maps of strings to values. | [optional]
**arbitrary_nullable_object** | **bool, date, datetime, dict, float, int, list, str, none_type** | test code generation for nullable objects, i.e. maps of strings to values or the 'null' value. | [optional]
**arbitrary_type** | **object** | test code generation for any type, can be any value - string, number, boolean, array or object. | [optional]
**arbitrary_nullable_type** | **object, none_type** | test code generation for any type, can be any value - string, number, boolean, array or object. | [optional]
**arbitrary_object** | **bool, date, datetime, dict, float, int, list, str** | test code generation for objects Value must be a map of strings to values. It cannot be the null value. | [optional]
**arbitrary_nullable_object** | **bool, date, datetime, dict, float, int, list, str, none_type** | test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. | [optional]
**arbitrary_type** | **object** | test code generation for any type Value can be any type - string, number, boolean, array or object. | [optional]
**arbitrary_nullable_type** | **object, none_type** | test code generation for any type Value can be any type - string, number, boolean, array or object. | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,10 @@ def __init__(self, _check_type=True, _from_server=False, _path_to_item=(), _conf
password (str): [optional] # noqa: E501
phone (str): [optional] # noqa: E501
user_status (int): User Status. [optional] # noqa: E501
arbitrary_object (bool, date, datetime, dict, float, int, list, str): test code generation for objects, i.e. maps of strings to values.. [optional] # noqa: E501
arbitrary_nullable_object (bool, date, datetime, dict, float, int, list, str, none_type): test code generation for nullable objects, i.e. maps of strings to values or the 'null' value.. [optional] # noqa: E501
arbitrary_type (object): test code generation for any type, can be any value - string, number, boolean, array or object.. [optional] # noqa: E501
arbitrary_nullable_type (object, none_type): test code generation for any type, can be any value - string, number, boolean, array or object.. [optional] # noqa: E501
arbitrary_object (bool, date, datetime, dict, float, int, list, str): test code generation for objects Value must be a map of strings to values. It cannot be the null value.. [optional] # noqa: E501
arbitrary_nullable_object (bool, date, datetime, dict, float, int, list, str, none_type): test code generation for nullable objects. Value must be a map of strings to values or the 'null' value.. [optional] # noqa: E501
arbitrary_type (object): test code generation for any type Value can be any type - string, number, boolean, array or object.. [optional] # noqa: E501
arbitrary_nullable_type (object, none_type): test code generation for any type Value can be any type - string, number, boolean, array or object.. [optional] # noqa: E501
"""

self._data_store = {}
Expand Down