feature: add description field to Component
This commit is contained in:
@@ -69,6 +69,13 @@ export type EntityMeta = {
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* The short description of the entity.
|
||||
*
|
||||
* A a human readable string.
|
||||
*/
|
||||
description: string;
|
||||
|
||||
/**
|
||||
* The namespace that the entity belongs to.
|
||||
*/
|
||||
|
||||
@@ -20,6 +20,6 @@ export function envelopeToComponent(envelope: DescriptorEnvelope): Component {
|
||||
return {
|
||||
name: envelope.metadata?.name ?? '',
|
||||
kind: envelope.kind ?? 'unknown',
|
||||
description: 'placeholder',
|
||||
description: envelope.metadata?.description ?? 'placeholder',
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user