typia icon indicating copy to clipboard operation
typia copied to clipboard

Refactor `MetataProperty` to support dynamic properties

Open samchon opened this issue 3 years ago • 0 comments

To support dynamic properties (#153), type of MetadataProperty.name must be changed from string to Metadata.

However, MetadataProperty already has been possessed the Metadata type in the MetadataProperty.metadata property. For clean design, it would better to rename MetadataProperty.name to key and MetadataProperty.metadata as value. Therefore, after implementing following this issue, MetadataProperty would be like below:

export class MetadataProperty {
    public readonly key: Metadata;
    public readonly value: Metadata;
    public readonly description: string | undefined;
    public readonly tags: IMetadataTag[];
    public readonly jsDocTags: IJsDocTagInfo[];
}

Also, many Programmer classes would be refactored by this change.

samchon avatar Sep 20 '22 16:09 samchon