Skip to content

Commit 09e8fbc

Browse files
committed
docs: add changeset for array-without-items fix
1 parent 5410c92 commit 09e8fbc

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)