Skip to content

Commit

Permalink
feat(metadata): add support nested metadata properties (#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebtiz13 authored Jul 4, 2024
1 parent 2844437 commit 17eda8b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lib/modules/model/types/ModelContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,14 @@ interface MetadataProperty {
type: string;
}

interface MetadataObject {
properties: {
[key: string]: MetadataProperty | MetadataObject;
};
}

export interface MetadataMappings {
[key: string]:
| MetadataProperty
| { properties: { [key: string]: MetadataProperty } };
[key: string]: MetadataProperty | MetadataObject;
}

interface LocaleDetails {
Expand Down

0 comments on commit 17eda8b

Please sign in to comment.