Skip to content

Commit

Permalink
e2e / update openapi.json and golden-record
Browse files Browse the repository at this point in the history
  • Loading branch information
Nementon authored and p1-ra committed May 18, 2021
1 parent 3667232 commit f46d1e6
Show file tree
Hide file tree
Showing 2 changed files with 262 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from .a_model_with_properties_reference_that_are_not_object import AModelWithPropertiesReferenceThatAreNotObject
from .a_model_with_indirect_reference_property import AModelWithIndirectReferenceProperty
from .a_model_with_indirect_self_reference_property import AModelWithIndirectSelfReferenceProperty
from .a_model_with_properties_reference_that_are_not_object import AModelWithPropertiesReferenceThatAreNotObject
from .all_of_sub_model import AllOfSubModel
from .an_all_of_enum import AnAllOfEnum
from .an_enum import AnEnum
Expand Down
261 changes: 261 additions & 0 deletions end_to_end_tests/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1615,6 +1615,267 @@
},
"AnIndirectSelfReference": {
"$ref": "#/components/schemas/AModelWithIndirectSelfReferenceProperty"
},
"AModelWithPropertiesReferenceThatAreNotObject": {
"type": "object",
"properties": {
"enum_properties_ref": {
"$ref": "#/components/schemas/AnOtherArrayOfEnum"
},
"str_properties_ref": {
"$ref": "#/components/schemas/AnOtherArrayOfString"
},
"date_properties_ref": {
"$ref": "#/components/schemas/AnOtherArrayOfDate"
},
"datetime_properties_ref": {
"$ref": "#/components/schemas/AnOtherArrayOfDateTime"
},
"int32_properties_ref": {
"$ref": "#/components/schemas/AnOtherArrayOfInt32"
},
"int64_properties_ref": {
"$ref": "#/components/schemas/AnOtherArrayOfInt64"
},
"float_properties_ref": {
"$ref": "#/components/schemas/AnOtherArrayOfFloat"
},
"double_properties_ref": {
"$ref": "#/components/schemas/AnOtherArrayOfDouble"
},
"file_properties_ref": {
"$ref": "#/components/schemas/AnOtherArrayOfFile"
},
"bytestream_properties_ref": {
"$ref": "#/components/schemas/AnOtherArrayOfByteStream"
},
"enum_properties": {
"$ref": "#/components/schemas/AnArrayOfEnum"
},
"str_properties": {
"$ref": "#/components/schemas/AnArrayOfString"
},
"date_properties": {
"$ref": "#/components/schemas/AnArrayOfDate"
},
"datetime_properties": {
"$ref": "#/components/schemas/AnArrayOfDateTime"
},
"int32_properties": {
"$ref": "#/components/schemas/AnArrayOfInt32"
},
"int64_properties": {
"$ref": "#/components/schemas/AnArrayOfInt64"
},
"float_properties": {
"$ref": "#/components/schemas/AnArrayOfFloat"
},
"double_properties": {
"$ref": "#/components/schemas/AnArrayOfDouble"
},
"file_properties": {
"$ref": "#/components/schemas/AnArrayOfFile"
},
"bytestream_properties": {
"$ref": "#/components/schemas/AnArrayOfByteStream"
},
"enum_property_ref": {
"$ref": "#/components/schemas/AnEnum"
},
"str_property_ref": {
"$ref": "#/components/schemas/AString"
},
"date_property_ref": {
"$ref": "#/components/schemas/ADate"
},
"datetime_property_ref": {
"$ref": "#/components/schemas/ADateTime"
},
"int32_property_ref": {
"$ref": "#/components/schemas/AnInt32"
},
"int64_property_ref": {
"$ref": "#/components/schemas/AnInt64"
},
"float_property_ref": {
"$ref": "#/components/schemas/AFloat"
},
"double_property_ref": {
"$ref": "#/components/schemas/ADouble"
},
"file_property_ref": {
"$ref": "#/components/schemas/AFile"
},
"bytestream_property_ref": {
"$ref": "#/components/schemas/AByteStream"
}
}
},
"AnArrayOfEnum": {
"type": "array",
"items": {
"title": "AnEnum",
"enum": ["FIRST_VALUE", "SECOND_VALUE"],
"description": "For testing Enums in all the ways they can be used "
}
},
"AnOtherArrayOfEnum": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AnEnum"
}
},
"AnArrayOfString": {
"type": "array",
"items": {
"type": "string"
}
},
"AnOtherArrayOfString": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AString"
}
},
"AString": {
"type": "string",
"pattern": "^helloworld.*"
},
"AnArrayOfDate": {
"type": "array",
"items": {
"type": "string",
"format": "date"
}
},
"AnOtherArrayOfDate": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ADate"
}
},
"ADate": {
"type": "string",
"format": "date"
},
"AnArrayOfDateTime": {
"type": "array",
"items": {
"type": "string",
"format": "date-time"
}
},
"AnOtherArrayOfDateTime": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ADateTime"
}
},
"ADateTime": {
"type": "string",
"format": "date-time"
},
"AnArrayOfInt32": {
"type": "array",
"items": {
"type": "integer",
"format": "int32"
}
},
"AnOtherArrayOfInt32": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AnInt32"
}
},
"AnInt32": {
"type": "integer",
"format": "int32"
},
"AnArrayOfInt64": {
"type": "array",
"items": {
"type": "integer",
"format": "int64"
}
},
"AnOtherArrayOfInt64": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AnInt64"
}
},
"AnInt64": {
"type": "integer",
"format": "int64"
},
"AnArrayOfFloat": {
"type": "array",
"items": {
"type": "number",
"format": "float"
}
},
"AnOtherArrayOfFloat": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AFloat"
}
},
"AFloat": {
"type": "number",
"format": "float"
},
"AnArrayOfDouble": {
"type": "array",
"items": {
"type": "number",
"format": "float"
}
},
"AnOtherArrayOfDouble": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ADouble"
}
},
"ADouble": {
"type": "number",
"format": "double"
},
"AnArrayOfFile": {
"type": "array",
"items": {
"type": "string",
"format": "binary"
}
},
"AnOtherArrayOfFile": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AFile"
}
},
"AFile": {
"type": "string",
"format": "binary"
},
"AnArrayOfByteStream": {
"type": "array",
"items": {
"type": "string",
"format": "byte"
}
},
"AnOtherArrayOfByteStream": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AByteStream"
}
},
"AByteStream": {
"type": "string",
"format": "byte"
}
}
}
Expand Down

0 comments on commit f46d1e6

Please sign in to comment.