Skip to content

Commit

Permalink
Add featured flag (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
anxolin authored Jun 4, 2024
1 parent 54dc161 commit dc56073
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 4 deletions.
5 changes: 5 additions & 0 deletions src/api/article/content-types/article/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@
"relation": "manyToMany",
"target": "api::tag.tag",
"mappedBy": "articles"
},
"featured": {
"type": "boolean",
"default": false,
"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-05-15T10:34:01.347Z"
"x-generation-date": "2024-06-03T21:24:21.562Z"
},
"x-strapi-config": {
"path": "/documentation",
Expand Down Expand Up @@ -94,7 +94,8 @@
"properties": {
"data": {
"required": [
"description"
"description",
"featured"
],
"type": "object",
"properties": {
Expand Down Expand Up @@ -181,6 +182,9 @@
],
"example": "string or id"
}
},
"featured": {
"type": "boolean"
}
}
}
Expand Down Expand Up @@ -235,7 +239,8 @@
"Article": {
"type": "object",
"required": [
"description"
"description",
"featured"
],
"properties": {
"title": {
Expand Down Expand Up @@ -1895,6 +1900,9 @@
}
}
},
"featured": {
"type": "boolean"
},
"createdAt": {
"type": "string",
"format": "date-time"
Expand Down Expand Up @@ -2204,6 +2212,9 @@
}
}
},
"featured": {
"type": "boolean"
},
"createdAt": {
"type": "string",
"format": "date-time"
Expand Down Expand Up @@ -4719,6 +4730,9 @@
}
}
},
"featured": {
"type": "boolean"
},
"createdAt": {
"type": "string",
"format": "date-time"
Expand Down Expand Up @@ -6662,6 +6676,9 @@
}
}
},
"featured": {
"type": "boolean"
},
"createdAt": {
"type": "string",
"format": "date-time"
Expand Down Expand Up @@ -10982,6 +10999,9 @@
}
}
},
"featured": {
"type": "boolean"
},
"createdAt": {
"type": "string",
"format": "date-time"
Expand Down Expand Up @@ -18145,6 +18165,9 @@
}
}
},
"featured": {
"type": "boolean"
},
"createdAt": {
"type": "string",
"format": "date-time"
Expand Down Expand Up @@ -27363,4 +27386,4 @@
}
}
]
}
}

0 comments on commit dc56073

Please sign in to comment.