Skip to content
This repository was archived by the owner on Jan 11, 2021. It is now read-only.

Stable/0.3.x: Schema object's required field cannot be empty#686

Open
tuffnatty wants to merge 1 commit intomarcgibbons:stable/0.3.xfrom
tuffnatty:model_required_cannot_be_empty
Open

Stable/0.3.x: Schema object's required field cannot be empty#686
tuffnatty wants to merge 1 commit intomarcgibbons:stable/0.3.xfrom
tuffnatty:model_required_cannot_be_empty

Conversation

@tuffnatty
Copy link
Copy Markdown

According to JSON Schema specification, required field of a schema object is a stringArray which means it should have at least one element. So skip the required field if there are no required properties, to make schema validation pass.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant