Skip to content

[13.x] Add minProperties and maxProperties to JsonSchema ObjectType#60307

Open
hamdyelbatal122 wants to merge 1 commit into
laravel:13.xfrom
hamdyelbatal122:json-schema-object-min-max-properties
Open

[13.x] Add minProperties and maxProperties to JsonSchema ObjectType#60307
hamdyelbatal122 wants to merge 1 commit into
laravel:13.xfrom
hamdyelbatal122:json-schema-object-min-max-properties

Conversation

@hamdyelbatal122
Copy link
Copy Markdown

This PR adds support for minProperties and maxProperties boundary constraints to the JsonSchema ObjectType.

Example

JsonSchema::object([
    'name' => JsonSchema::string()->required(),
])->min(1)->max(3);

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.

1 participant