There was an error while loading. Please reload this page.
1 parent 5410c92 commit 09e8fbcCopy full SHA for 09e8fbc
1 file changed
.changeset/array_without_items_is_list_of_any.md
@@ -0,0 +1,11 @@
1
+---
2
+default: patch
3
4
+
5
+# Treat `type: array` without `items` as a list of Any
6
7
+An array schema with neither `items` nor `prefixItems` is valid in JSON Schema
8
+2020-12 (OpenAPI 3.1) and means "array of any type". Previously the generator
9
+failed such schemas with a `PropertyError` ("type array must have items or
10
+prefixItems defined"), silently skipping the property or `anyOf` branch. It now
11
+generates a `list[Any]`, equivalent to `items: {}`.
0 commit comments