Steps to reproduce
Related issue is #3493082: SDC does not respect JSON Schema validation.
- Create a component that is using the
defaultkey.
Example:name: Layout 3 Column status: stable group: Layouts props: type: object properties: attributes: type: Drupal\Core\Template\Attribute container_size: title: Container size type: string enum: - narrow - wide default: wide - This component will not work due to #3493082: SDC does not respect JSON Schema validation. However, it breaks the display of all other components. The editor will see this error:
- An invalid component should not break everything. Instead, it should show up as disabled at
/admin/structure/component/status
Proposed resolution
User interface changes
| Comment | File | Size | Author |
|---|---|---|---|
| image (1).png | 49.83 KB | mherchel |
Comments
Comment #2
mherchelAnother situation that I ran into is if an image component has an invalid examples.
Comment #3
wim leers#3507641: Allow components containing non-required images and no examples to be placed will do this, and will indeed result in
Crediting you over there!