Sebastien Rosset 2c1ca02b61
[codegen][Go] Fix compilation error of generated go code when schema is free form object (#5391)
* Fix code generation for free-form objects in go-experimental

* Execute scripts in bin directory

* Add more use cases for open-ended types

* Add more use cases for open-ended types

* Add more use cases for open-ended types

* add code comments

* Better name for test properties

* handle scenario when type is arbitrary

* handle interface{} scenario

* handle interface{} scenario

* add helper function isAnyType

* isAnyType function

* implementation of isAnyType function

* fix javadoc issue

* handle interface{} scenario

* use equals comparison instead of ==

* merge from master

* Add code documentation

* add code comments, remove unused min/max attribute, fix equals method

* Handle 'anytype' use case

* add code comments

* override postProcessModelProperty to set vendor extension

* Use vendorExtensions.x-golang-is-container

* fix compilation error of generated code

* fix compilation error of generated code

* fix compilation error of generated code
2020-03-26 16:40:34 +08:00

1.4 KiB

user.User

Properties

Name Type Description Notes
id int [optional]
username str [optional]
first_name str [optional]
last_name str [optional]
email str [optional]
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 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_value object test code generation for any type Value can be any type - string, number, boolean, array or object. [optional]
arbitrary_nullable_type_value object, none_type test code generation for any type Value can be any type - string, number, boolean, array, object or the 'null' value. [optional]

[Back to Model list] [Back to API list] [Back to README]