@@ -23,10 +23,10 @@ export const PropertyDetailsSchema = t.Object({
2323 modified : t . Optional ( t . String ( ) ) ,
2424 type : t . Literal ( 'property' ) ,
2525 datatype : t . String ( ) ,
26- labels : t . Optional ( t . Object ( { } ) ) ,
27- descriptions : t . Optional ( t . Object ( { } ) ) ,
28- aliases : t . Optional ( t . Object ( { } ) ) ,
29- claims : t . Optional ( t . Object ( { } ) ) ,
26+ labels : t . Optional ( t . Record ( t . String ( ) , t . String ( ) ) ) ,
27+ descriptions : t . Optional ( t . Record ( t . String ( ) , t . String ( ) ) ) ,
28+ aliases : t . Optional ( t . Record ( t . String ( ) , t . Array ( t . String ( ) ) ) ) ,
29+ claims : t . Optional ( t . Record ( t . String ( ) , t . Array ( t . Any ( ) ) ) ) ,
3030} )
3131
3232export const ItemSearchResultSchema = t . Object ( {
@@ -53,11 +53,11 @@ export const ItemDetailsSchema = t.Object({
5353 lastrevid : t . Optional ( t . Number ( ) ) ,
5454 modified : t . Optional ( t . String ( ) ) ,
5555 type : t . Literal ( 'item' ) ,
56- labels : t . Optional ( t . Object ( { } ) ) ,
57- descriptions : t . Optional ( t . Object ( { } ) ) ,
58- aliases : t . Optional ( t . Object ( { } ) ) ,
59- claims : t . Optional ( t . Object ( { } ) ) ,
60- sitelinks : t . Optional ( t . Object ( { } ) ) ,
56+ labels : t . Optional ( t . Record ( t . String ( ) , t . String ( ) ) ) ,
57+ descriptions : t . Optional ( t . Record ( t . String ( ) , t . String ( ) ) ) ,
58+ aliases : t . Optional ( t . Record ( t . String ( ) , t . Array ( t . String ( ) ) ) ) ,
59+ claims : t . Optional ( t . Record ( t . String ( ) , t . Array ( t . Any ( ) ) ) ) ,
60+ sitelinks : t . Optional ( t . Record ( t . String ( ) , t . Any ( ) ) ) ,
6161} )
6262
6363// Response schemas
0 commit comments