mirror of
https://github.com/go-gitea/gitea.git
synced 2026-08-06 09:20:00 +00:00
fix(api): align Swagger schemas for UserSettings and TopicListResponse (#38590)
Corrects the Swagger/OpenAPI schemas for `/user/settings` and `/topics/search` to match the actual JSON objects returned by the API. Signed-off-by: Sudhanshu Singh <sudhanshuwriterblc@gmail.com>
This commit is contained in:
Generated
+16
-8
@@ -30208,6 +30208,20 @@
|
||||
},
|
||||
"x-go-package": "gitea.dev/modules/structs"
|
||||
},
|
||||
"TopicListResponse": {
|
||||
"description": "TopicListResponse returns a list of TopicResponse",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"topics": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/TopicResponse"
|
||||
},
|
||||
"x-go-name": "Topics"
|
||||
}
|
||||
},
|
||||
"x-go-package": "gitea.dev/modules/structs"
|
||||
},
|
||||
"TopicName": {
|
||||
"description": "TopicName a list of repo topic names",
|
||||
"type": "object",
|
||||
@@ -31804,10 +31818,7 @@
|
||||
"TopicListResponse": {
|
||||
"description": "TopicListResponse",
|
||||
"schema": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/TopicResponse"
|
||||
}
|
||||
"$ref": "#/definitions/TopicListResponse"
|
||||
}
|
||||
},
|
||||
"TopicNames": {
|
||||
@@ -31858,10 +31869,7 @@
|
||||
"UserSettings": {
|
||||
"description": "UserSettings",
|
||||
"schema": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/UserSettings"
|
||||
}
|
||||
"$ref": "#/definitions/UserSettings"
|
||||
}
|
||||
},
|
||||
"VariableList": {
|
||||
|
||||
Generated
+16
-8
@@ -1402,10 +1402,7 @@
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/TopicResponse"
|
||||
},
|
||||
"type": "array"
|
||||
"$ref": "#/components/schemas/TopicListResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1484,10 +1481,7 @@
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/UserSettings"
|
||||
},
|
||||
"type": "array"
|
||||
"$ref": "#/components/schemas/UserSettings"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -9963,6 +9957,20 @@
|
||||
"type": "object",
|
||||
"x-go-package": "gitea.dev/modules/structs"
|
||||
},
|
||||
"TopicListResponse": {
|
||||
"description": "TopicListResponse returns a list of TopicResponse",
|
||||
"properties": {
|
||||
"topics": {
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/TopicResponse"
|
||||
},
|
||||
"type": "array",
|
||||
"x-go-name": "Topics"
|
||||
}
|
||||
},
|
||||
"type": "object",
|
||||
"x-go-package": "gitea.dev/modules/structs"
|
||||
},
|
||||
"TopicName": {
|
||||
"description": "TopicName a list of repo topic names",
|
||||
"properties": {
|
||||
|
||||
Reference in New Issue
Block a user