Skip to content

Commit 63a98bc

Browse files
authored
Add publish date and publish date visible fields for article (#33)
1 parent dc56073 commit 63a98bc

File tree

2 files changed

+63
-4
lines changed

2 files changed

+63
-4
lines changed

src/api/article/content-types/article/schema.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,14 @@
7171
"type": "boolean",
7272
"default": false,
7373
"required": true
74+
},
75+
"publishDate": {
76+
"type": "datetime"
77+
},
78+
"publishDateVisible": {
79+
"type": "boolean",
80+
"default": true,
81+
"required": true
7482
}
7583
}
7684
}

src/extensions/documentation/documentation/1.0.0/full_documentation.json

Lines changed: 55 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"name": "Apache 2.0",
1515
"url": "https://www.apache.org/licenses/LICENSE-2.0.html"
1616
},
17-
"x-generation-date": "2024-06-03T21:24:21.562Z"
17+
"x-generation-date": "2024-06-07T17:23:18.291Z"
1818
},
1919
"x-strapi-config": {
2020
"path": "/documentation",
@@ -95,7 +95,8 @@
9595
"data": {
9696
"required": [
9797
"description",
98-
"featured"
98+
"featured",
99+
"publishDateVisible"
99100
],
100101
"type": "object",
101102
"properties": {
@@ -185,6 +186,13 @@
185186
},
186187
"featured": {
187188
"type": "boolean"
189+
},
190+
"publishDate": {
191+
"type": "string",
192+
"format": "date-time"
193+
},
194+
"publishDateVisible": {
195+
"type": "boolean"
188196
}
189197
}
190198
}
@@ -240,7 +248,8 @@
240248
"type": "object",
241249
"required": [
242250
"description",
243-
"featured"
251+
"featured",
252+
"publishDateVisible"
244253
],
245254
"properties": {
246255
"title": {
@@ -1903,6 +1912,13 @@
19031912
"featured": {
19041913
"type": "boolean"
19051914
},
1915+
"publishDate": {
1916+
"type": "string",
1917+
"format": "date-time"
1918+
},
1919+
"publishDateVisible": {
1920+
"type": "boolean"
1921+
},
19061922
"createdAt": {
19071923
"type": "string",
19081924
"format": "date-time"
@@ -2215,6 +2231,13 @@
22152231
"featured": {
22162232
"type": "boolean"
22172233
},
2234+
"publishDate": {
2235+
"type": "string",
2236+
"format": "date-time"
2237+
},
2238+
"publishDateVisible": {
2239+
"type": "boolean"
2240+
},
22182241
"createdAt": {
22192242
"type": "string",
22202243
"format": "date-time"
@@ -4733,6 +4756,13 @@
47334756
"featured": {
47344757
"type": "boolean"
47354758
},
4759+
"publishDate": {
4760+
"type": "string",
4761+
"format": "date-time"
4762+
},
4763+
"publishDateVisible": {
4764+
"type": "boolean"
4765+
},
47364766
"createdAt": {
47374767
"type": "string",
47384768
"format": "date-time"
@@ -6679,6 +6709,13 @@
66796709
"featured": {
66806710
"type": "boolean"
66816711
},
6712+
"publishDate": {
6713+
"type": "string",
6714+
"format": "date-time"
6715+
},
6716+
"publishDateVisible": {
6717+
"type": "boolean"
6718+
},
66826719
"createdAt": {
66836720
"type": "string",
66846721
"format": "date-time"
@@ -11002,6 +11039,13 @@
1100211039
"featured": {
1100311040
"type": "boolean"
1100411041
},
11042+
"publishDate": {
11043+
"type": "string",
11044+
"format": "date-time"
11045+
},
11046+
"publishDateVisible": {
11047+
"type": "boolean"
11048+
},
1100511049
"createdAt": {
1100611050
"type": "string",
1100711051
"format": "date-time"
@@ -18168,6 +18212,13 @@
1816818212
"featured": {
1816918213
"type": "boolean"
1817018214
},
18215+
"publishDate": {
18216+
"type": "string",
18217+
"format": "date-time"
18218+
},
18219+
"publishDateVisible": {
18220+
"type": "boolean"
18221+
},
1817118222
"createdAt": {
1817218223
"type": "string",
1817318224
"format": "date-time"
@@ -27386,4 +27437,4 @@
2738627437
}
2738727438
}
2738827439
]
27389-
}
27440+
}

0 commit comments

Comments
 (0)