Skip to content

Commit f46d1e6

Browse files
Nementonp1-ra
authored andcommitted
e2e / update openapi.json and golden-record
1 parent 3667232 commit f46d1e6

File tree

2 files changed

+262
-0
lines changed

2 files changed

+262
-0
lines changed

end_to_end_tests/golden-record/my_test_api_client/models/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from .a_model_with_properties_reference_that_are_not_object import AModelWithPropertiesReferenceThatAreNotObject
66
from .a_model_with_indirect_reference_property import AModelWithIndirectReferenceProperty
77
from .a_model_with_indirect_self_reference_property import AModelWithIndirectSelfReferenceProperty
8+
from .a_model_with_properties_reference_that_are_not_object import AModelWithPropertiesReferenceThatAreNotObject
89
from .all_of_sub_model import AllOfSubModel
910
from .an_all_of_enum import AnAllOfEnum
1011
from .an_enum import AnEnum

end_to_end_tests/openapi.json

+261
Original file line numberDiff line numberDiff line change
@@ -1615,6 +1615,267 @@
16151615
},
16161616
"AnIndirectSelfReference": {
16171617
"$ref": "#/components/schemas/AModelWithIndirectSelfReferenceProperty"
1618+
},
1619+
"AModelWithPropertiesReferenceThatAreNotObject": {
1620+
"type": "object",
1621+
"properties": {
1622+
"enum_properties_ref": {
1623+
"$ref": "#/components/schemas/AnOtherArrayOfEnum"
1624+
},
1625+
"str_properties_ref": {
1626+
"$ref": "#/components/schemas/AnOtherArrayOfString"
1627+
},
1628+
"date_properties_ref": {
1629+
"$ref": "#/components/schemas/AnOtherArrayOfDate"
1630+
},
1631+
"datetime_properties_ref": {
1632+
"$ref": "#/components/schemas/AnOtherArrayOfDateTime"
1633+
},
1634+
"int32_properties_ref": {
1635+
"$ref": "#/components/schemas/AnOtherArrayOfInt32"
1636+
},
1637+
"int64_properties_ref": {
1638+
"$ref": "#/components/schemas/AnOtherArrayOfInt64"
1639+
},
1640+
"float_properties_ref": {
1641+
"$ref": "#/components/schemas/AnOtherArrayOfFloat"
1642+
},
1643+
"double_properties_ref": {
1644+
"$ref": "#/components/schemas/AnOtherArrayOfDouble"
1645+
},
1646+
"file_properties_ref": {
1647+
"$ref": "#/components/schemas/AnOtherArrayOfFile"
1648+
},
1649+
"bytestream_properties_ref": {
1650+
"$ref": "#/components/schemas/AnOtherArrayOfByteStream"
1651+
},
1652+
"enum_properties": {
1653+
"$ref": "#/components/schemas/AnArrayOfEnum"
1654+
},
1655+
"str_properties": {
1656+
"$ref": "#/components/schemas/AnArrayOfString"
1657+
},
1658+
"date_properties": {
1659+
"$ref": "#/components/schemas/AnArrayOfDate"
1660+
},
1661+
"datetime_properties": {
1662+
"$ref": "#/components/schemas/AnArrayOfDateTime"
1663+
},
1664+
"int32_properties": {
1665+
"$ref": "#/components/schemas/AnArrayOfInt32"
1666+
},
1667+
"int64_properties": {
1668+
"$ref": "#/components/schemas/AnArrayOfInt64"
1669+
},
1670+
"float_properties": {
1671+
"$ref": "#/components/schemas/AnArrayOfFloat"
1672+
},
1673+
"double_properties": {
1674+
"$ref": "#/components/schemas/AnArrayOfDouble"
1675+
},
1676+
"file_properties": {
1677+
"$ref": "#/components/schemas/AnArrayOfFile"
1678+
},
1679+
"bytestream_properties": {
1680+
"$ref": "#/components/schemas/AnArrayOfByteStream"
1681+
},
1682+
"enum_property_ref": {
1683+
"$ref": "#/components/schemas/AnEnum"
1684+
},
1685+
"str_property_ref": {
1686+
"$ref": "#/components/schemas/AString"
1687+
},
1688+
"date_property_ref": {
1689+
"$ref": "#/components/schemas/ADate"
1690+
},
1691+
"datetime_property_ref": {
1692+
"$ref": "#/components/schemas/ADateTime"
1693+
},
1694+
"int32_property_ref": {
1695+
"$ref": "#/components/schemas/AnInt32"
1696+
},
1697+
"int64_property_ref": {
1698+
"$ref": "#/components/schemas/AnInt64"
1699+
},
1700+
"float_property_ref": {
1701+
"$ref": "#/components/schemas/AFloat"
1702+
},
1703+
"double_property_ref": {
1704+
"$ref": "#/components/schemas/ADouble"
1705+
},
1706+
"file_property_ref": {
1707+
"$ref": "#/components/schemas/AFile"
1708+
},
1709+
"bytestream_property_ref": {
1710+
"$ref": "#/components/schemas/AByteStream"
1711+
}
1712+
}
1713+
},
1714+
"AnArrayOfEnum": {
1715+
"type": "array",
1716+
"items": {
1717+
"title": "AnEnum",
1718+
"enum": ["FIRST_VALUE", "SECOND_VALUE"],
1719+
"description": "For testing Enums in all the ways they can be used "
1720+
}
1721+
},
1722+
"AnOtherArrayOfEnum": {
1723+
"type": "array",
1724+
"items": {
1725+
"$ref": "#/components/schemas/AnEnum"
1726+
}
1727+
},
1728+
"AnArrayOfString": {
1729+
"type": "array",
1730+
"items": {
1731+
"type": "string"
1732+
}
1733+
},
1734+
"AnOtherArrayOfString": {
1735+
"type": "array",
1736+
"items": {
1737+
"$ref": "#/components/schemas/AString"
1738+
}
1739+
},
1740+
"AString": {
1741+
"type": "string",
1742+
"pattern": "^helloworld.*"
1743+
},
1744+
"AnArrayOfDate": {
1745+
"type": "array",
1746+
"items": {
1747+
"type": "string",
1748+
"format": "date"
1749+
}
1750+
},
1751+
"AnOtherArrayOfDate": {
1752+
"type": "array",
1753+
"items": {
1754+
"$ref": "#/components/schemas/ADate"
1755+
}
1756+
},
1757+
"ADate": {
1758+
"type": "string",
1759+
"format": "date"
1760+
},
1761+
"AnArrayOfDateTime": {
1762+
"type": "array",
1763+
"items": {
1764+
"type": "string",
1765+
"format": "date-time"
1766+
}
1767+
},
1768+
"AnOtherArrayOfDateTime": {
1769+
"type": "array",
1770+
"items": {
1771+
"$ref": "#/components/schemas/ADateTime"
1772+
}
1773+
},
1774+
"ADateTime": {
1775+
"type": "string",
1776+
"format": "date-time"
1777+
},
1778+
"AnArrayOfInt32": {
1779+
"type": "array",
1780+
"items": {
1781+
"type": "integer",
1782+
"format": "int32"
1783+
}
1784+
},
1785+
"AnOtherArrayOfInt32": {
1786+
"type": "array",
1787+
"items": {
1788+
"$ref": "#/components/schemas/AnInt32"
1789+
}
1790+
},
1791+
"AnInt32": {
1792+
"type": "integer",
1793+
"format": "int32"
1794+
},
1795+
"AnArrayOfInt64": {
1796+
"type": "array",
1797+
"items": {
1798+
"type": "integer",
1799+
"format": "int64"
1800+
}
1801+
},
1802+
"AnOtherArrayOfInt64": {
1803+
"type": "array",
1804+
"items": {
1805+
"$ref": "#/components/schemas/AnInt64"
1806+
}
1807+
},
1808+
"AnInt64": {
1809+
"type": "integer",
1810+
"format": "int64"
1811+
},
1812+
"AnArrayOfFloat": {
1813+
"type": "array",
1814+
"items": {
1815+
"type": "number",
1816+
"format": "float"
1817+
}
1818+
},
1819+
"AnOtherArrayOfFloat": {
1820+
"type": "array",
1821+
"items": {
1822+
"$ref": "#/components/schemas/AFloat"
1823+
}
1824+
},
1825+
"AFloat": {
1826+
"type": "number",
1827+
"format": "float"
1828+
},
1829+
"AnArrayOfDouble": {
1830+
"type": "array",
1831+
"items": {
1832+
"type": "number",
1833+
"format": "float"
1834+
}
1835+
},
1836+
"AnOtherArrayOfDouble": {
1837+
"type": "array",
1838+
"items": {
1839+
"$ref": "#/components/schemas/ADouble"
1840+
}
1841+
},
1842+
"ADouble": {
1843+
"type": "number",
1844+
"format": "double"
1845+
},
1846+
"AnArrayOfFile": {
1847+
"type": "array",
1848+
"items": {
1849+
"type": "string",
1850+
"format": "binary"
1851+
}
1852+
},
1853+
"AnOtherArrayOfFile": {
1854+
"type": "array",
1855+
"items": {
1856+
"$ref": "#/components/schemas/AFile"
1857+
}
1858+
},
1859+
"AFile": {
1860+
"type": "string",
1861+
"format": "binary"
1862+
},
1863+
"AnArrayOfByteStream": {
1864+
"type": "array",
1865+
"items": {
1866+
"type": "string",
1867+
"format": "byte"
1868+
}
1869+
},
1870+
"AnOtherArrayOfByteStream": {
1871+
"type": "array",
1872+
"items": {
1873+
"$ref": "#/components/schemas/AByteStream"
1874+
}
1875+
},
1876+
"AByteStream": {
1877+
"type": "string",
1878+
"format": "byte"
16181879
}
16191880
}
16201881
}

0 commit comments

Comments
 (0)