Skip to content

Commit

Permalink
Add publish date and publish date visible fields for article (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
anxolin authored Jun 7, 2024
1 parent dc56073 commit 63a98bc
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 4 deletions.
8 changes: 8 additions & 0 deletions src/api/article/content-types/article/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,14 @@
"type": "boolean",
"default": false,
"required": true
},
"publishDate": {
"type": "datetime"
},
"publishDateVisible": {
"type": "boolean",
"default": true,
"required": true
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"name": "Apache 2.0",
"url": "https://www.apache.org/licenses/LICENSE-2.0.html"
},
"x-generation-date": "2024-06-03T21:24:21.562Z"
"x-generation-date": "2024-06-07T17:23:18.291Z"
},
"x-strapi-config": {
"path": "/documentation",
Expand Down Expand Up @@ -95,7 +95,8 @@
"data": {
"required": [
"description",
"featured"
"featured",
"publishDateVisible"
],
"type": "object",
"properties": {
Expand Down Expand Up @@ -185,6 +186,13 @@
},
"featured": {
"type": "boolean"
},
"publishDate": {
"type": "string",
"format": "date-time"
},
"publishDateVisible": {
"type": "boolean"
}
}
}
Expand Down Expand Up @@ -240,7 +248,8 @@
"type": "object",
"required": [
"description",
"featured"
"featured",
"publishDateVisible"
],
"properties": {
"title": {
Expand Down Expand Up @@ -1903,6 +1912,13 @@
"featured": {
"type": "boolean"
},
"publishDate": {
"type": "string",
"format": "date-time"
},
"publishDateVisible": {
"type": "boolean"
},
"createdAt": {
"type": "string",
"format": "date-time"
Expand Down Expand Up @@ -2215,6 +2231,13 @@
"featured": {
"type": "boolean"
},
"publishDate": {
"type": "string",
"format": "date-time"
},
"publishDateVisible": {
"type": "boolean"
},
"createdAt": {
"type": "string",
"format": "date-time"
Expand Down Expand Up @@ -4733,6 +4756,13 @@
"featured": {
"type": "boolean"
},
"publishDate": {
"type": "string",
"format": "date-time"
},
"publishDateVisible": {
"type": "boolean"
},
"createdAt": {
"type": "string",
"format": "date-time"
Expand Down Expand Up @@ -6679,6 +6709,13 @@
"featured": {
"type": "boolean"
},
"publishDate": {
"type": "string",
"format": "date-time"
},
"publishDateVisible": {
"type": "boolean"
},
"createdAt": {
"type": "string",
"format": "date-time"
Expand Down Expand Up @@ -11002,6 +11039,13 @@
"featured": {
"type": "boolean"
},
"publishDate": {
"type": "string",
"format": "date-time"
},
"publishDateVisible": {
"type": "boolean"
},
"createdAt": {
"type": "string",
"format": "date-time"
Expand Down Expand Up @@ -18168,6 +18212,13 @@
"featured": {
"type": "boolean"
},
"publishDate": {
"type": "string",
"format": "date-time"
},
"publishDateVisible": {
"type": "boolean"
},
"createdAt": {
"type": "string",
"format": "date-time"
Expand Down Expand Up @@ -27386,4 +27437,4 @@
}
}
]
}
}

0 comments on commit 63a98bc

Please sign in to comment.