-
-
Notifications
You must be signed in to change notification settings - Fork 262
Closed
Description
Describe the bug
Error with the schema below:
type array must have items defined
items is not required when using prefixItems, see: https://json-schema.org/understanding-json-schema/reference/array#tupleValidation
OpenAPI Spec File
openapi: 3.1.0
info:
title: Example
description: 'Example'
version: 1.0.0
paths: {}
components:
schemas:
Test:
properties:
example_tuple:
items:
maxItems: 2
minItems: 2
prefixItems:
- type: string
- {}
type: array
title: Example tuple
type: array
uniqueItems: true
title: Test
type: objectDesktop (please complete the following information):
- OS: macOS 14.3
- Python Version: 3.12.1
- openapi-python-client version: 0.17.2
Additional context
Metadata
Metadata
Assignees
Labels
No labels