Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenAPI Tools
openapi-generator
Commits
41dc5a8d
Commit
41dc5a8d
authored
5 years ago
by
Sebastien Rosset (serosset)
Browse files
Options
Download
Email Patches
Plain Diff
Move golang changes to a separate branch
parent
39e14b37
github/fork/CiscoM31/golang-null-type
1 merge request
!6212
[go-experimental] Add support for AnyType and FreeForm type
Pipeline
#467
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml
+18
-7
...ake-endpoints-models-for-testing-with-http-signature.yaml
with
18 additions
and
7 deletions
+18
-7
modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml
+
18
-
7
View file @
41dc5a8d
...
...
@@ -1250,22 +1250,32 @@ components:
type
:
integer
format
:
int32
description
:
User Status
arbitraryObject
:
objectWithNoDeclaredProps
:
type
:
object
description
:
test code generation for objects
Value must be a map of strings to values. It cannot be the 'null' value.
arbitrary
Nullable
Object
:
objectWithNoDeclaredProps
Nullable
:
type
:
object
description
:
test code generation for
null
able objects.
Value must be a map of strings to values or the 'null' value.
nullable
:
true
a
rbitraryTypeValue
:
a
nyTypeProp
:
description
:
test code generation for any type
Value can be any type - string, number, boolean, array or object.
arbitraryNullableTypeValue
:
Here the 'type' attribute is not specified, which means the value can be anything,
including the
null
value, string, number, boolean, array or object.
See https://github.com/OAI/OpenAPI-Specification/issues/1389
# TODO: this should be supported, currently there are some issues in the code generation.
#anyTypeExceptNullProp:
# description: any type except 'null'
# Here the 'type' attribute is not specified, which means the value can be anything,
# including the null value, string, number, boolean, array or object.
# not:
# type: 'null'
anyTypePropNullable
:
description
:
test code generation for any type
Value can be any type - string, number, boolean, array, object or
the 'null' value.
Here the 'type' attribute is not specified, which means the value can be anything,
including the
null
value, string, number, boolean, array or object.
The 'nullable' attribute does not change the allowed values.
nullable
:
true
xml
:
name
:
User
...
...
@@ -1855,6 +1865,7 @@ components:
-
$ref
:
'
#/components/schemas/banana'
fruitReq
:
oneOf
:
-
type
:
'
null'
-
$ref
:
'
#/components/schemas/appleReq'
-
$ref
:
'
#/components/schemas/bananaReq'
appleReq
:
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets