Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate array type of types for object without a name when used in combination with a block type #1171

Merged
merged 2 commits into from
Jan 25, 2019

Conversation

skogsmaskin
Copy link
Member

@skogsmaskin skogsmaskin commented Jan 19, 2019

When using a type block in an array, we must validate that it also doesn't use object types without a name, because the block editor is dependent on all the members having names.

In the future we probably should make it an overall requirement that every array member type should have a name.

There is also a commit here that fixes unique keys (we now have warnings) and completes propTypes for the SchemaErrorReporter component.

Copy link
Member

@bjoerge bjoerge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@skogsmaskin skogsmaskin merged commit d92d834 into next Jan 25, 2019
@skogsmaskin skogsmaskin deleted the validate-array-type-for-name branch January 25, 2019 11:32
skogsmaskin added a commit that referenced this pull request Jan 31, 2019
…ombination with a block type (#1171)

* [default-layout] Fix unique keys and add propTypes for SchemaErrorReporter

* [schema] Don't allow object types without a name when used with a block type
bjoerge pushed a commit that referenced this pull request Feb 1, 2019
…ombination with a block type (#1171)

* [default-layout] Fix unique keys and add propTypes for SchemaErrorReporter

* [schema] Don't allow object types without a name when used with a block type
@skogsmaskin skogsmaskin mentioned this pull request Feb 1, 2019
skogsmaskin added a commit that referenced this pull request Feb 1, 2019
…ombination with a block type (#1171)

* [default-layout] Fix unique keys and add propTypes for SchemaErrorReporter

* [schema] Don't allow object types without a name when used with a block type
bjoerge pushed a commit that referenced this pull request Aug 13, 2019
…ombination with a block type (#1171)

* [default-layout] Fix unique keys and add propTypes for SchemaErrorReporter

* [schema] Don't allow object types without a name when used with a block type
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.

2 participants