Skip to content

Commit

Permalink
Add solver ID and remove the draft stage
Browse files Browse the repository at this point in the history
  • Loading branch information
anxolin committed Aug 5, 2024
1 parent a4a1a78 commit dc965cc
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 34 deletions.
5 changes: 3 additions & 2 deletions src/api/network/content-types/network/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
"info": {
"singularName": "network",
"pluralName": "networks",
"displayName": "Network"
"displayName": "Network",
"description": ""
},
"options": {
"draftAndPublish": true
"draftAndPublish": false
},
"pluginOptions": {},
"attributes": {
Expand Down
18 changes: 13 additions & 5 deletions src/api/solver/content-types/solver/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
"info": {
"singularName": "solver",
"pluralName": "solvers",
"displayName": "Solver"
"displayName": "Solver",
"description": ""
},
"options": {
"draftAndPublish": true
"draftAndPublish": false
},
"pluginOptions": {},
"attributes": {
Expand Down Expand Up @@ -36,11 +37,12 @@
"required": true
},
"image": {
"type": "media",
"multiple": false,
"required": false,
"allowedTypes": [
"images"
],
"type": "media",
"multiple": false
]
},
"organization": {
"type": "string"
Expand All @@ -51,6 +53,12 @@
},
"description": {
"type": "string"
},
"solverId": {
"required": true,
"unique": true,
"default": 0,
"type": "integer"
}
}
}
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-08-05T12:22:10.973Z"
"x-generation-date": "2024-08-05T14:34:04.237Z"
},
"x-strapi-config": {
"path": "/documentation",
Expand Down Expand Up @@ -11861,10 +11861,6 @@
"type": "string",
"format": "date-time"
},
"publishedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -12539,6 +12535,9 @@
"description": {
"type": "string"
},
"solverId": {
"type": "integer"
},
"createdAt": {
"type": "string",
"format": "date-time"
Expand All @@ -12547,10 +12546,6 @@
"type": "string",
"format": "date-time"
},
"publishedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -12600,10 +12595,6 @@
"type": "string",
"format": "date-time"
},
"publishedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -17396,7 +17387,8 @@
"required": [
"name",
"address",
"active"
"active",
"solverId"
],
"type": "object",
"properties": {
Expand Down Expand Up @@ -17445,6 +17437,9 @@
},
"description": {
"type": "string"
},
"solverId": {
"type": "integer"
}
}
}
Expand Down Expand Up @@ -17501,7 +17496,8 @@
"required": [
"name",
"address",
"active"
"active",
"solverId"
],
"properties": {
"name": {
Expand Down Expand Up @@ -18209,6 +18205,9 @@
"description": {
"type": "string"
},
"solverId": {
"type": "integer"
},
"createdAt": {
"type": "string",
"format": "date-time"
Expand All @@ -18217,10 +18216,6 @@
"type": "string",
"format": "date-time"
},
"publishedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -18270,10 +18265,6 @@
"type": "string",
"format": "date-time"
},
"publishedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -18466,6 +18457,9 @@
"description": {
"type": "string"
},
"solverId": {
"type": "integer"
},
"createdAt": {
"type": "string",
"format": "date-time"
Expand All @@ -18474,10 +18468,6 @@
"type": "string",
"format": "date-time"
},
"publishedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
Expand Down

0 comments on commit dc965cc

Please sign in to comment.