@@ -17,11 +17,11 @@ export const AnnouncementResponseSchema = z
1717 author : z . string ( ) . nullable ( ) . openapi ( { example : "ReVanced" } ) ,
1818 title : z . string ( ) . openapi ( { example : "Welcome" } ) ,
1919 content : z . string ( ) . nullable ( ) . openapi ( { example : "Some content" } ) ,
20- created_at : z
21- . string ( )
20+ tags : z . array ( z . string ( ) ) . openapi ( { example : [ "Important" ] } ) ,
21+ created_at : z . iso
2222 . datetime ( )
23- . openapi ( { example : "2024 -01-01T00:00:00.000Z" } ) ,
24- archived_at : z . string ( ) . datetime ( ) . nullable ( ) . openapi ( { example : null } ) ,
23+ . openapi ( { example : "1970 -01-01T00:00:00.000Z" } ) ,
24+ archived_at : z . iso . datetime ( ) . nullable ( ) . openapi ( { example : null } ) ,
2525 level : z . number ( ) . int ( ) . openapi ( { example : 0 } ) ,
2626 } )
2727 . openapi ( "Announcement" ) ;
@@ -33,17 +33,12 @@ export const CreateAnnouncementBodySchema = z
3333 author : z . string ( ) . optional ( ) . openapi ( { example : "ReVanced" } ) ,
3434 title : z . string ( ) . openapi ( { example : "Welcome" } ) ,
3535 content : z . string ( ) . optional ( ) . openapi ( { example : "Some content" } ) ,
36- created_at : z
37- . string ( )
38- . datetime ( )
39- . nullable ( )
40- . optional ( )
41- . openapi ( {
42- example : "2024-01-01T00:00:00.000Z" ,
43- description : "UTC timestamp. Defaults to current time if omitted." ,
44- } ) ,
45- archived_at : z
46- . string ( )
36+ tags : z . array ( z . string ( ) ) . openapi ( { example : [ "Important" ] } ) ,
37+ created_at : z . string ( ) . datetime ( ) . nullable ( ) . optional ( ) . openapi ( {
38+ example : "1970-01-01T00:00:00.000Z" ,
39+ description : "UTC timestamp. Defaults to current time if omitted." ,
40+ } ) ,
41+ archived_at : z . iso
4742 . datetime ( )
4843 . nullable ( )
4944 . optional ( )
@@ -57,17 +52,12 @@ export const UpdateAnnouncementBodySchema = z
5752 author : z . string ( ) . optional ( ) . openapi ( { example : "ReVanced" } ) ,
5853 title : z . string ( ) . openapi ( { example : "Welcome" } ) ,
5954 content : z . string ( ) . optional ( ) . openapi ( { example : "Some content" } ) ,
60- created_at : z
61- . string ( )
62- . datetime ( )
63- . nullable ( )
64- . optional ( )
65- . openapi ( {
66- example : "2024-01-01T00:00:00.000Z" ,
67- description : "UTC timestamp." ,
68- } ) ,
69- archived_at : z
70- . string ( )
55+ tags : z . array ( z . string ( ) ) . openapi ( { example : [ "Important" ] } ) ,
56+ created_at : z . iso . datetime ( ) . nullable ( ) . optional ( ) . openapi ( {
57+ example : "1970-01-01T00:00:00.000Z" ,
58+ description : "UTC timestamp." ,
59+ } ) ,
60+ archived_at : z . iso
7161 . datetime ( )
7262 . nullable ( )
7363 . optional ( )
0 commit comments