diff --git a/docs/src/components/explorer/PropertyIndicator.astro b/docs/src/components/explorer/PropertyIndicator.astro index ad994819f..43882fcb2 100644 --- a/docs/src/components/explorer/PropertyIndicator.astro +++ b/docs/src/components/explorer/PropertyIndicator.astro @@ -17,6 +17,11 @@ const CONTENTS = { title: 'Hidden property', text: 'This property should not be displayed in user interfaces.', }, + stub: { + icon: 'arrow-uturn-left', + title: 'Stub property', + text: 'When a property points to another schema, a stub property is added to the target schema for the reverse direction. Stub properties are read-only.', + }, }; const { type } = Astro.props; diff --git a/docs/src/components/explorer/SchemaProperties.astro b/docs/src/components/explorer/SchemaProperties.astro index 8b66f1cf1..40429fec5 100644 --- a/docs/src/components/explorer/SchemaProperties.astro +++ b/docs/src/components/explorer/SchemaProperties.astro @@ -14,6 +14,7 @@ const isRequired = (property) => const isHidden = (property) => property.hidden; const isInherited = (property) => property.schema.name !== schema.name; const isDeprecated = (property) => property.deprecated; +const isStub = (property) => property.stub; const properties = Array.from(schema.getProperties().values()) .sort((a, b) => a.name.localeCompare(b.name)) @@ -24,17 +25,24 @@ const properties = Array.from(schema.getProperties().values())