tag:github.com,2008:https://github.com/openapi-generators/openapi-python-client/releasesRelease notes from openapi-python-client2025-03-31T22:40:47Ztag:github.com,2008:Repository/240776275/v0.24.32025-03-31T22:44:02Z0.24.3 (2025-03-31)<h2>Features</h2>
<h3>Adding support for named integer enums</h3>
<p><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2901142635" data-permission-text="Title is private" data-url="https://github.com/openapi-generators/openapi-python-client/issues/1214" data-hovercard-type="pull_request" data-hovercard-url="/openapi-generators/openapi-python-client/pull/1214/hovercard" href="https://github.com/openapi-generators/openapi-python-client/pull/1214">#1214</a> by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/barrybarrette/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/barrybarrette">@barrybarrette</a></p>
<p>Adding support for named integer enums via an optional extension, <code>x-enum-varnames</code>.</p>
<p>This extension is added to the schema inline with the <code>enum</code> definition:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""MyEnum": {
"enum": [
0,
1,
2,
3,
4,
5,
6,
99
],
"type": "integer",
"format": "int32",
"x-enum-varnames": [
"Deinstalled",
"Installed",
"Upcoming_Site",
"Lab_Site",
"Pending_Deinstall",
"Suspended",
"Install_In_Progress",
"Unknown"
]
}"><pre class="notranslate"><code>"MyEnum": {
"enum": [
0,
1,
2,
3,
4,
5,
6,
99
],
"type": "integer",
"format": "int32",
"x-enum-varnames": [
"Deinstalled",
"Installed",
"Upcoming_Site",
"Lab_Site",
"Pending_Deinstall",
"Suspended",
"Install_In_Progress",
"Unknown"
]
}
</code></pre></div>
<p>The result:<br>
<a target="_blank" rel="noopener noreferrer" href="https://private-user-images.githubusercontent.com/25397325/420040927-780880b3-2f1f-49be-823b-f9abb713a3e1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDY2Mjg2OTEsIm5iZiI6MTc0NjYyODM5MSwicGF0aCI6Ii8yNTM5NzMyNS80MjAwNDA5MjctNzgwODgwYjMtMmYxZi00OWJlLTgyM2ItZjlhYmI3MTNhM2UxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA1MDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwNTA3VDE0MzMxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTEyOTc5YzVjYjc5OTQzZTdlMzhmOWE5NzlhM2NkOTk5ODhhZmJjODFlMTNlMTk5ZTkwMjUxOTZiZjkyNjZkN2UmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.p6kfznX-GHh9gJXTUVWiueWY7krkdD8cybvjB8ud9Cs"><img src="https://private-user-images.githubusercontent.com/25397325/420040927-780880b3-2f1f-49be-823b-f9abb713a3e1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDY2Mjg2OTEsIm5iZiI6MTc0NjYyODM5MSwicGF0aCI6Ii8yNTM5NzMyNS80MjAwNDA5MjctNzgwODgwYjMtMmYxZi00OWJlLTgyM2ItZjlhYmI3MTNhM2UxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA1MDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwNTA3VDE0MzMxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTEyOTc5YzVjYjc5OTQzZTdlMzhmOWE5NzlhM2NkOTk5ODhhZmJjODFlMTNlMTk5ZTkwMjUxOTZiZjkyNjZkN2UmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.p6kfznX-GHh9gJXTUVWiueWY7krkdD8cybvjB8ud9Cs" alt="image" content-type-secured-asset="image/png" style="max-width: 100%;"></a></p>knope-bot[bot]tag:github.com,2008:Repository/240776275/v0.24.22025-03-22T20:37:13Z0.24.2 (2025-03-22)<h2>Fixes</h2>
<h3>Make lists of models and enums work correctly in custom templates</h3>
<p>Lists of model and enum classes should be available to custom templates via the Jinja<br>
variables <code>openapi.models</code> and <code>openapi.enums</code>, but these were being passed in a way that made<br>
them always appear empty. This has been fixed so a custom template can now iterate over them.</p>
<p>Closes <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2771659193" data-permission-text="Title is private" data-url="https://github.com/openapi-generators/openapi-python-client/issues/1188" data-hovercard-type="issue" data-hovercard-url="/openapi-generators/openapi-python-client/issues/1188/hovercard" href="https://github.com/openapi-generators/openapi-python-client/issues/1188">#1188</a>.</p>knope-bot[bot]tag:github.com,2008:Repository/240776275/v0.24.12025-03-15T19:19:55Z0.24.1 (2025-03-15)<h2>Features</h2>
<ul>
<li>allow Ruff to 0.10 (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2918478336" data-permission-text="Title is private" data-url="https://github.com/openapi-generators/openapi-python-client/issues/1220" data-hovercard-type="pull_request" data-hovercard-url="/openapi-generators/openapi-python-client/pull/1220/hovercard" href="https://github.com/openapi-generators/openapi-python-client/pull/1220">#1220</a>)</li>
<li>allow Ruff 0.11 (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2920611642" data-permission-text="Title is private" data-url="https://github.com/openapi-generators/openapi-python-client/issues/1222" data-hovercard-type="pull_request" data-hovercard-url="/openapi-generators/openapi-python-client/pull/1222/hovercard" href="https://github.com/openapi-generators/openapi-python-client/pull/1222">#1222</a>)</li>
<li>Allow any <code>Mapping</code> in generated <code>from_dict</code> functions (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2889955136" data-permission-text="Title is private" data-url="https://github.com/openapi-generators/openapi-python-client/issues/1211" data-hovercard-type="pull_request" data-hovercard-url="/openapi-generators/openapi-python-client/pull/1211/hovercard" href="https://github.com/openapi-generators/openapi-python-client/pull/1211">#1211</a>)</li>
</ul>
<h2>Fixes</h2>
<h3>Always parse <code>$ref</code> as a reference</h3>
<p>If additional attributes were included with a <code>$ref</code> (for example <code>title</code> or <code>description</code>), the property could be<br>
interpreted as a new type instead of a reference, usually resulting in <code>Any</code> in the generated code.<br>
Now, any sibling properties to <code>$ref</code> will properly be ignored, as per the OpenAPI specification.</p>
<p>Thanks <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nkrishnaswami/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nkrishnaswami">@nkrishnaswami</a>!</p>knope-bot[bot]tag:github.com,2008:Repository/240776275/v0.24.02025-03-08T19:59:01Z0.24.0 (2025-03-03)<h2>Breaking Changes</h2>
<h3>Support <code>$ref</code> in responses</h3>
<p>Previously, using a <code>$ref</code> to define a response was ignored, the code to call the endpoint was still generated, but<br>
the response would not be parsed. Now, responses defined with <code>$ref</code> will be used to generate the response model, which<br>
will parse the response at runtime.</p>
<p>If a <code>$ref</code> is incorrect or uses a feature that is not supported by the generator, these endpoints will start failing to<br>
generate.</p>
<h2>Features</h2>
<h3>Make <code>config</code> available in custom templates</h3>
<p>The configuration options object is now exposed as a variable called <code>config</code> in Jinja2 templates.</p>
<h3>Add <code>docstrings_on_attributes</code> config setting</h3>
<p>Setting this option to <code>true</code> changes the docstring behavior in model classes: for any attribute that have a non-empty <code>description</code>, instead of describing the attribute as part of the class's docstring, the description will appear in an individual docstring for that attribute.</p>dbantytag:github.com,2008:Repository/240776275/v0.23.12025-01-22T16:00:59Z0.23.1 (2025-01-13)<h2>Features</h2>
<ul>
<li>allow Ruff 0.9 (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2778133367" data-permission-text="Title is private" data-url="https://github.com/openapi-generators/openapi-python-client/issues/1192" data-hovercard-type="pull_request" data-hovercard-url="/openapi-generators/openapi-python-client/pull/1192/hovercard" href="https://github.com/openapi-generators/openapi-python-client/pull/1192">#1192</a>)</li>
</ul>knope-bot[bot]tag:github.com,2008:Repository/240776275/v0.23.02024-12-24T23:49:59Z0.23.0 (2024-12-24)<h2>Breaking Changes</h2>
<h3>Delete fewer files with <code>--overwrite</code></h3>
<p><code>--overwrite</code> will no longer delete the entire output directory before regenerating. Instead, it will only delete<br>
specific, known directories within that directory. Right now, that is only the generated <code>models</code> and <code>api</code> directories.</p>
<p>Other generated files, like <code>README.md</code>, will be overwritten. Extra files and directories outside of those listed above<br>
will be left untouched, so you can any extra modules or files around while still updating <code>pyproject.toml</code> automatically.</p>
<p>Closes <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2483760963" data-permission-text="Title is private" data-url="https://github.com/openapi-generators/openapi-python-client/issues/1105" data-hovercard-type="issue" data-hovercard-url="/openapi-generators/openapi-python-client/issues/1105/hovercard" href="https://github.com/openapi-generators/openapi-python-client/issues/1105">#1105</a>.</p>
<h2>Features</h2>
<ul>
<li>Support httpx 0.28 (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2702668106" data-permission-text="Title is private" data-url="https://github.com/openapi-generators/openapi-python-client/issues/1172" data-hovercard-type="pull_request" data-hovercard-url="/openapi-generators/openapi-python-client/pull/1172/hovercard" href="https://github.com/openapi-generators/openapi-python-client/pull/1172">#1172</a>)</li>
</ul>
<h3>Add <code>generate_all_tags</code> config option</h3>
<p>You can now, optionally, generate <strong>duplicate</strong> endpoint functions/modules using <em>every</em> tag for an endpoint,<br>
not just the first one, by setting <code>generate_all_tags: true</code> in your configuration file.</p>
<h2>Fixes</h2>
<ul>
<li>Support Typer 0.14 and 0.15 (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2703443919" data-permission-text="Title is private" data-url="https://github.com/openapi-generators/openapi-python-client/issues/1173" data-hovercard-type="pull_request" data-hovercard-url="/openapi-generators/openapi-python-client/pull/1173/hovercard" href="https://github.com/openapi-generators/openapi-python-client/pull/1173">#1173</a>)</li>
</ul>
<h3>Fix minimum <code>attrs</code> version</h3>
<p>The minimum <code>attrs</code> dependency version was incorrectly set to 21.3.0. This has been corrected to 22.2.0, the minimum<br>
supported version since <code>openapi-python-client</code> 0.19.1.</p>
<p>Closes <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2434172826" data-permission-text="Title is private" data-url="https://github.com/openapi-generators/openapi-python-client/issues/1084" data-hovercard-type="issue" data-hovercard-url="/openapi-generators/openapi-python-client/issues/1084/hovercard" href="https://github.com/openapi-generators/openapi-python-client/issues/1084">#1084</a>, thanks <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/astralblue/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/astralblue">@astralblue</a>!</p>
<h3>Fix compatibility with Pydantic 2.10+</h3>
<p><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2720202977" data-permission-text="Title is private" data-url="https://github.com/openapi-generators/openapi-python-client/issues/1176" data-hovercard-type="pull_request" data-hovercard-url="/openapi-generators/openapi-python-client/pull/1176/hovercard" href="https://github.com/openapi-generators/openapi-python-client/pull/1176">#1176</a> by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Viicos/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Viicos">@Viicos</a></p>
<p>Set <code>defer_build</code> to models that we know will fail to build, and call <code>model_rebuild</code><br>
in the <code>__init__.py</code> file.</p>knope-bot[bot]tag:github.com,2008:Repository/240776275/v0.22.02024-12-09T17:45:13Z0.22.0 (2024-11-23)<h2>Breaking Changes</h2>
<h3>Drop support for Python 3.8</h3>
<p>Python 3.8 is no longer supported. "New" 3.9 syntax, like generics on builtin collections, is used both in the generator<br>
and the generated code.</p>
<h3><code>type</code> is now a reserved field name</h3>
<p>Because <code>type</code> is used in type annotations now, it is no longer a valid field name. Fields which were previously named<br>
<code>type</code> will be renamed to <code>type_</code>.</p>
<h2>Features</h2>
<ul>
<li>Support Ruff 0.8 (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2683341578" data-permission-text="Title is private" data-url="https://github.com/openapi-generators/openapi-python-client/issues/1169" data-hovercard-type="pull_request" data-hovercard-url="/openapi-generators/openapi-python-client/pull/1169/hovercard" href="https://github.com/openapi-generators/openapi-python-client/pull/1169">#1169</a>)</li>
</ul>knope-bot[bot]tag:github.com,2008:Repository/240776275/v0.21.72024-11-23T01:38:31Z0.21.7 (2024-10-28)<h2>Fixes</h2>
<ul>
<li>allow required fields list to be specified as empty (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1335407333" data-permission-text="Title is private" data-url="https://github.com/openapi-generators/openapi-python-client/issues/651" data-hovercard-type="issue" data-hovercard-url="/openapi-generators/openapi-python-client/issues/651/hovercard" href="https://github.com/openapi-generators/openapi-python-client/issues/651">#651</a>) (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2616766298" data-permission-text="Title is private" data-url="https://github.com/openapi-generators/openapi-python-client/issues/1149" data-hovercard-type="pull_request" data-hovercard-url="/openapi-generators/openapi-python-client/pull/1149/hovercard" href="https://github.com/openapi-generators/openapi-python-client/pull/1149">#1149</a>)</li>
<li>import cast for required const properties, since it's used in the template (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2617185253" data-permission-text="Title is private" data-url="https://github.com/openapi-generators/openapi-python-client/issues/1153" data-hovercard-type="pull_request" data-hovercard-url="/openapi-generators/openapi-python-client/pull/1153/hovercard" href="https://github.com/openapi-generators/openapi-python-client/pull/1153">#1153</a>)</li>
</ul>knope-bot[bot]tag:github.com,2008:Repository/240776275/v0.21.62024-10-20T23:41:25Z0.21.6 (2024-10-20)<h2>Features</h2>
<ul>
<li>update Ruff to >=0.2,<0.8 (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2595267967" data-permission-text="Title is private" data-url="https://github.com/openapi-generators/openapi-python-client/issues/1137" data-hovercard-type="pull_request" data-hovercard-url="/openapi-generators/openapi-python-client/pull/1137/hovercard" href="https://github.com/openapi-generators/openapi-python-client/pull/1137">#1137</a>)</li>
<li>Add UUID string format. Thanks <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/estyrke/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/estyrke">@estyrke</a>! (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2600875803" data-permission-text="Title is private" data-url="https://github.com/openapi-generators/openapi-python-client/issues/1140" data-hovercard-type="pull_request" data-hovercard-url="/openapi-generators/openapi-python-client/pull/1140/hovercard" href="https://github.com/openapi-generators/openapi-python-client/pull/1140">#1140</a>)</li>
<li>Support OpenAPI 3.1 prefixItems property for arrays. Thanks <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/estyrke/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/estyrke">@estyrke</a>! (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2600902175" data-permission-text="Title is private" data-url="https://github.com/openapi-generators/openapi-python-client/issues/1141" data-hovercard-type="pull_request" data-hovercard-url="/openapi-generators/openapi-python-client/pull/1141/hovercard" href="https://github.com/openapi-generators/openapi-python-client/pull/1141">#1141</a>)</li>
</ul>
<h3>Add <code>literal_enums</code> config setting</h3>
<p>Instead of the default <code>Enum</code> classes for enums, you can now generate <code>Literal</code> sets wherever <code>enum</code> appears in the OpenAPI spec by setting <code>literal_enums: true</code> in your config file.</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="literal_enums: true"><pre><span class="pl-ent">literal_enums</span>: <span class="pl-c1">true</span></pre></div>
<p>Thanks to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/emosenkis/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/emosenkis">@emosenkis</a> for PR <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2501507545" data-permission-text="Title is private" data-url="https://github.com/openapi-generators/openapi-python-client/issues/1114" data-hovercard-type="pull_request" data-hovercard-url="/openapi-generators/openapi-python-client/pull/1114/hovercard" href="https://github.com/openapi-generators/openapi-python-client/pull/1114">#1114</a> closes <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1140770892" data-permission-text="Title is private" data-url="https://github.com/openapi-generators/openapi-python-client/issues/587" data-hovercard-type="issue" data-hovercard-url="/openapi-generators/openapi-python-client/issues/587/hovercard" href="https://github.com/openapi-generators/openapi-python-client/issues/587">#587</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1592520868" data-permission-text="Title is private" data-url="https://github.com/openapi-generators/openapi-python-client/issues/725" data-hovercard-type="pull_request" data-hovercard-url="/openapi-generators/openapi-python-client/pull/725/hovercard" href="https://github.com/openapi-generators/openapi-python-client/pull/725">#725</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2418927789" data-permission-text="Title is private" data-url="https://github.com/openapi-generators/openapi-python-client/issues/1076" data-hovercard-type="pull_request" data-hovercard-url="/openapi-generators/openapi-python-client/pull/1076/hovercard" href="https://github.com/openapi-generators/openapi-python-client/pull/1076">#1076</a>, and probably many more.<br>
Thanks also to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/eli-bl/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/eli-bl">@eli-bl</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/expobrain/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/expobrain">@expobrain</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/theorm/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/theorm">@theorm</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/chrisguillory/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/chrisguillory">@chrisguillory</a>, and anyone else who helped getting to this design!</p>
<h2>Fixes</h2>
<ul>
<li>Typo in docstring (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2554461934" data-permission-text="Title is private" data-url="https://github.com/openapi-generators/openapi-python-client/issues/1128" data-hovercard-type="pull_request" data-hovercard-url="/openapi-generators/openapi-python-client/pull/1128/hovercard" href="https://github.com/openapi-generators/openapi-python-client/pull/1128">#1128</a>)</li>
</ul>
<h3>Use literal value instead of <code>HTTPStatus</code> enum when checking response statuses</h3>
<p>Python 3.13 renamed some of the <code>HTTPStatus</code> enum members, which means clients generated with Python 3.13 may not work<br>
with older versions of Python. This change stops using the <code>HTTPStatus</code> enum directly when checking response statuses.</p>
<p>Statuses will still be checked for validity at generation time, and transformed into <code>HTTPStatus</code> <em>after</em> being checked<br>
at runtime.</p>
<p>This may cause some linters to complain.</p>knope-bot[bot]tag:github.com,2008:Repository/240776275/v0.21.52024-09-07T22:09:20Z0.21.5 (2024-09-07)<h2>Features</h2>
<h3>Improved property-merging behavior with <code>allOf</code></h3>
<p>When using <code>allOf</code> to extend a base object type, <code>openapi-python-client</code> is now able to handle some kinds of modifications to an existing property that would have previously caused an error:</p>
<ul>
<li>Overriding attributes that do not affect validation, such as <code>description</code>.</li>
<li>Combining properties that this generator ignores, like <code>maxLength</code> or <code>pattern</code>.</li>
<li>Combining a generic numeric type with <code>int</code> (resulting in <code>int</code>).</li>
<li>Adding a <code>format</code> to a string.</li>
<li>Combining <code>any</code> with a specific type (resulting in that specific type).</li>
<li>Adding or overriding a <code>default</code></li>
</ul>
<div class="markdown-alert markdown-alert-note"><p class="markdown-alert-title"><svg class="octicon octicon-info mr-2" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></svg>Note</p><p><code>pattern</code> and <code>max_length</code> are no longer fields on <code>StringProperty</code>, which may impact custom templates.</p>
</div>
<p>This also fixes a bug where properties of inline objects (as opposed to references) were not using the<br>
merge logic, but were simply overwriting previous definitions of the same property.</p>
<h2>Fixes</h2>
<ul>
<li>Allow default values for properties of <code>Any</code> type</li>
</ul>
<h3>Produce valid code for an object that has no properties at all</h3>
<p>Fixed by PR <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2488156069" data-permission-text="Title is private" data-url="https://github.com/openapi-generators/openapi-python-client/issues/1109" data-hovercard-type="pull_request" data-hovercard-url="/openapi-generators/openapi-python-client/pull/1109/hovercard" href="https://github.com/openapi-generators/openapi-python-client/pull/1109">#1109</a>. Thanks <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/eli-bl/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/eli-bl">@eli-bl</a>!</p>knope-bot[bot]