- Issue created by @luke.leber
Following the guide in https://www.drupal.org/docs/develop/theming-drupal/using-single-director... β
name: My Component
status: stable
group: Molecule/My Component
props:
type: object
properties:
id:
type: string
title: Uh oh...
PHPstorm's intellisense reports Schema validation: Incompatible types. Required: string. Actual: object.
.
Changing the id
property to any other string makes it happy. Is id
a reserved / special identifier under props, or is PHPStorm just bugging out? π€
On PHPStorm 2024.2.3, add this SDC.
$schema: 'https://git.drupalcode.org/project/drupal/-/raw/HEAD/core/assets/schemas/v1/metadata.schema.json'
name: Accordion
status: stable
group: Molecule/Accordion
description: An accordion component
props:
type: object
properties:
id:
type: string
title: Accordion content ID
and see these squiggles...
Add documentation about if ID is reserved...or maybe guidance on how to make phpstorm behave better?
Maybe new docs?
None
None
Active
11.1 π₯
single-directory components