Skip to content

allow arrays without items (and with other array constraints)#320

Merged
ahl merged 2 commits into
mainfrom
array-sans-items
Jun 11, 2023
Merged

allow arrays without items (and with other array constraints)#320
ahl merged 2 commits into
mainfrom
array-sans-items

Conversation

@ahl

@ahl ahl commented Jun 11, 2023

Copy link
Copy Markdown
Collaborator

Fixes #314

ahl added 2 commits June 9, 2023 23:44
thread 'test_schemas' panicked at 'called `Result::unwrap()` on an `Err` value: InvalidSchema { type_name: Some("array-sans-items"), reason: "unhandled array validation ArrayValidation {\n    items: None,\n    additional_items: None,\n    max_items: None,\n    min_items: Some(\n        1,\n    ),\n    unique_items: Some(\n        true,\n    ),\n    contains: None,\n}" }', typify/tests/schemas.rs:17:41
@ahl ahl merged commit d662f87 into main Jun 11, 2023
@ahl ahl deleted the array-sans-items branch June 11, 2023 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Arrays wrongly require items

1 participant