Skip to content

Commit 7491eac

Browse files
committed
e2e / update openapi.json and golden-record
1 parent f985c8e commit 7491eac

File tree

2 files changed

+262
-0
lines changed

2 files changed

+262
-0
lines changed

Diff for: end_to_end_tests/golden-record/my_test_api_client/models/__init__.py

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

Diff for: end_to_end_tests/openapi.json

+261
Original file line numberDiff line numberDiff line change
@@ -1571,6 +1571,267 @@
15711571
},
15721572
"AnIndirectSelfReference": {
15731573
"$ref": "#/components/schemas/AModelWithIndirectSelfReferenceProperty"
1574+
},
1575+
"AModelWithPropertiesReferenceThatAreNotObject": {
1576+
"type": "object",
1577+
"properties": {
1578+
"enum_properties_ref": {
1579+
"$ref": "#/components/schemas/AnOtherArrayOfEnum"
1580+
},
1581+
"str_properties_ref": {
1582+
"$ref": "#/components/schemas/AnOtherArrayOfString"
1583+
},
1584+
"date_properties_ref": {
1585+
"$ref": "#/components/schemas/AnOtherArrayOfDate"
1586+
},
1587+
"datetime_properties_ref": {
1588+
"$ref": "#/components/schemas/AnOtherArrayOfDateTime"
1589+
},
1590+
"int32_properties_ref": {
1591+
"$ref": "#/components/schemas/AnOtherArrayOfInt32"
1592+
},
1593+
"int64_properties_ref": {
1594+
"$ref": "#/components/schemas/AnOtherArrayOfInt64"
1595+
},
1596+
"float_properties_ref": {
1597+
"$ref": "#/components/schemas/AnOtherArrayOfFloat"
1598+
},
1599+
"double_properties_ref": {
1600+
"$ref": "#/components/schemas/AnOtherArrayOfDouble"
1601+
},
1602+
"file_properties_ref": {
1603+
"$ref": "#/components/schemas/AnOtherArrayOfFile"
1604+
},
1605+
"bytestream_properties_ref": {
1606+
"$ref": "#/components/schemas/AnOtherArrayOfByteStream"
1607+
},
1608+
"enum_properties": {
1609+
"$ref": "#/components/schemas/AnArrayOfEnum"
1610+
},
1611+
"str_properties": {
1612+
"$ref": "#/components/schemas/AnArrayOfString"
1613+
},
1614+
"date_properties": {
1615+
"$ref": "#/components/schemas/AnArrayOfDate"
1616+
},
1617+
"datetime_properties": {
1618+
"$ref": "#/components/schemas/AnArrayOfDateTime"
1619+
},
1620+
"int32_properties": {
1621+
"$ref": "#/components/schemas/AnArrayOfInt32"
1622+
},
1623+
"int64_properties": {
1624+
"$ref": "#/components/schemas/AnArrayOfInt64"
1625+
},
1626+
"float_properties": {
1627+
"$ref": "#/components/schemas/AnArrayOfFloat"
1628+
},
1629+
"double_properties": {
1630+
"$ref": "#/components/schemas/AnArrayOfDouble"
1631+
},
1632+
"file_properties": {
1633+
"$ref": "#/components/schemas/AnArrayOfFile"
1634+
},
1635+
"bytestream_properties": {
1636+
"$ref": "#/components/schemas/AnArrayOfByteStream"
1637+
},
1638+
"enum_property_ref": {
1639+
"$ref": "#/components/schemas/AnEnum"
1640+
},
1641+
"str_property_ref": {
1642+
"$ref": "#/components/schemas/AString"
1643+
},
1644+
"date_property_ref": {
1645+
"$ref": "#/components/schemas/ADate"
1646+
},
1647+
"datetime_property_ref": {
1648+
"$ref": "#/components/schemas/ADateTime"
1649+
},
1650+
"int32_property_ref": {
1651+
"$ref": "#/components/schemas/AnInt32"
1652+
},
1653+
"int64_property_ref": {
1654+
"$ref": "#/components/schemas/AnInt64"
1655+
},
1656+
"float_property_ref": {
1657+
"$ref": "#/components/schemas/AFloat"
1658+
},
1659+
"double_property_ref": {
1660+
"$ref": "#/components/schemas/ADouble"
1661+
},
1662+
"file_property_ref": {
1663+
"$ref": "#/components/schemas/AFile"
1664+
},
1665+
"bytestream_property_ref": {
1666+
"$ref": "#/components/schemas/AByteStream"
1667+
}
1668+
}
1669+
},
1670+
"AnArrayOfEnum": {
1671+
"type": "array",
1672+
"items": {
1673+
"title": "AnEnum",
1674+
"enum": ["FIRST_VALUE", "SECOND_VALUE"],
1675+
"description": "For testing Enums in all the ways they can be used "
1676+
}
1677+
},
1678+
"AnOtherArrayOfEnum": {
1679+
"type": "array",
1680+
"items": {
1681+
"$ref": "#/components/schemas/AnEnum"
1682+
}
1683+
},
1684+
"AnArrayOfString": {
1685+
"type": "array",
1686+
"items": {
1687+
"type": "string"
1688+
}
1689+
},
1690+
"AnOtherArrayOfString": {
1691+
"type": "array",
1692+
"items": {
1693+
"$ref": "#/components/schemas/AString"
1694+
}
1695+
},
1696+
"AString": {
1697+
"type": "string",
1698+
"pattern": "^helloworld.*"
1699+
},
1700+
"AnArrayOfDate": {
1701+
"type": "array",
1702+
"items": {
1703+
"type": "string",
1704+
"format": "date"
1705+
}
1706+
},
1707+
"AnOtherArrayOfDate": {
1708+
"type": "array",
1709+
"items": {
1710+
"$ref": "#/components/schemas/ADate"
1711+
}
1712+
},
1713+
"ADate": {
1714+
"type": "string",
1715+
"format": "date"
1716+
},
1717+
"AnArrayOfDateTime": {
1718+
"type": "array",
1719+
"items": {
1720+
"type": "string",
1721+
"format": "date-time"
1722+
}
1723+
},
1724+
"AnOtherArrayOfDateTime": {
1725+
"type": "array",
1726+
"items": {
1727+
"$ref": "#/components/schemas/ADateTime"
1728+
}
1729+
},
1730+
"ADateTime": {
1731+
"type": "string",
1732+
"format": "date-time"
1733+
},
1734+
"AnArrayOfInt32": {
1735+
"type": "array",
1736+
"items": {
1737+
"type": "integer",
1738+
"format": "int32"
1739+
}
1740+
},
1741+
"AnOtherArrayOfInt32": {
1742+
"type": "array",
1743+
"items": {
1744+
"$ref": "#/components/schemas/AnInt32"
1745+
}
1746+
},
1747+
"AnInt32": {
1748+
"type": "integer",
1749+
"format": "int32"
1750+
},
1751+
"AnArrayOfInt64": {
1752+
"type": "array",
1753+
"items": {
1754+
"type": "integer",
1755+
"format": "int64"
1756+
}
1757+
},
1758+
"AnOtherArrayOfInt64": {
1759+
"type": "array",
1760+
"items": {
1761+
"$ref": "#/components/schemas/AnInt64"
1762+
}
1763+
},
1764+
"AnInt64": {
1765+
"type": "integer",
1766+
"format": "int64"
1767+
},
1768+
"AnArrayOfFloat": {
1769+
"type": "array",
1770+
"items": {
1771+
"type": "number",
1772+
"format": "float"
1773+
}
1774+
},
1775+
"AnOtherArrayOfFloat": {
1776+
"type": "array",
1777+
"items": {
1778+
"$ref": "#/components/schemas/AFloat"
1779+
}
1780+
},
1781+
"AFloat": {
1782+
"type": "number",
1783+
"format": "float"
1784+
},
1785+
"AnArrayOfDouble": {
1786+
"type": "array",
1787+
"items": {
1788+
"type": "number",
1789+
"format": "float"
1790+
}
1791+
},
1792+
"AnOtherArrayOfDouble": {
1793+
"type": "array",
1794+
"items": {
1795+
"$ref": "#/components/schemas/ADouble"
1796+
}
1797+
},
1798+
"ADouble": {
1799+
"type": "number",
1800+
"format": "double"
1801+
},
1802+
"AnArrayOfFile": {
1803+
"type": "array",
1804+
"items": {
1805+
"type": "string",
1806+
"format": "binary"
1807+
}
1808+
},
1809+
"AnOtherArrayOfFile": {
1810+
"type": "array",
1811+
"items": {
1812+
"$ref": "#/components/schemas/AFile"
1813+
}
1814+
},
1815+
"AFile": {
1816+
"type": "string",
1817+
"format": "binary"
1818+
},
1819+
"AnArrayOfByteStream": {
1820+
"type": "array",
1821+
"items": {
1822+
"type": "string",
1823+
"format": "byte"
1824+
}
1825+
},
1826+
"AnOtherArrayOfByteStream": {
1827+
"type": "array",
1828+
"items": {
1829+
"$ref": "#/components/schemas/AByteStream"
1830+
}
1831+
},
1832+
"AByteStream": {
1833+
"type": "string",
1834+
"format": "byte"
15741835
}
15751836
}
15761837
}

0 commit comments

Comments
 (0)