Skip to content

Commit a88eda7

Browse files
committed
fix: appid spec
It's optional on POST, so not readonly and not required.
1 parent 0fd65a0 commit a88eda7

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

docs/spec.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2943,17 +2943,15 @@
29432943
"title": "MessageExternal Model",
29442944
"required": [
29452945
"id",
2946-
"appid",
29472946
"message",
29482947
"date"
29492948
],
29502949
"properties": {
29512950
"appid": {
2952-
"description": "The application id that send this message.",
2951+
"description": "The application id that send this message. Always set when returned via the API.",
29532952
"type": "integer",
29542953
"format": "int64",
29552954
"x-go-name": "ApplicationID",
2956-
"readOnly": true,
29572955
"example": 5
29582956
},
29592957
"date": {

model/message.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,8 @@ type MessageExternal struct {
2727
// required: true
2828
// example: 25
2929
ID uint `json:"id"`
30-
// The application id that send this message.
30+
// The application id that send this message. Always set when returned via the API.
3131
//
32-
// read only: true
33-
// required: true
3432
// example: 5
3533
ApplicationID uint `json:"appid"`
3634
// The message. Markdown (excluding html) is allowed.

0 commit comments

Comments
 (0)