mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 19:35:20 +08:00
95a6268c45
* repair structural problems with the openapi spec * additional tweaks to fix failing tests * un-mark is_categorized as required & restore method
135 lines
2.6 KiB
JSON
135 lines
2.6 KiB
JSON
{
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"badge_types": {
|
|
"type": "array",
|
|
"items":
|
|
{
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"sort_order": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"sort_order"
|
|
]
|
|
}
|
|
},
|
|
"badge": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"grant_count": {
|
|
"type": "integer"
|
|
},
|
|
"allow_title": {
|
|
"type": "boolean"
|
|
},
|
|
"multiple_grant": {
|
|
"type": "boolean"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"image_url": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"listable": {
|
|
"type": "boolean"
|
|
},
|
|
"enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"badge_grouping_id": {
|
|
"type": "integer"
|
|
},
|
|
"system": {
|
|
"type": "boolean"
|
|
},
|
|
"long_description": {
|
|
"type": "string"
|
|
},
|
|
"slug": {
|
|
"type": "string"
|
|
},
|
|
"manually_grantable": {
|
|
"type": "boolean"
|
|
},
|
|
"query": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"trigger": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"target_posts": {
|
|
"type": "boolean"
|
|
},
|
|
"auto_revoke": {
|
|
"type": "boolean"
|
|
},
|
|
"show_posts": {
|
|
"type": "boolean"
|
|
},
|
|
"badge_type_id": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"description",
|
|
"grant_count",
|
|
"allow_title",
|
|
"multiple_grant",
|
|
"icon",
|
|
"image_url",
|
|
"listable",
|
|
"enabled",
|
|
"badge_grouping_id",
|
|
"system",
|
|
"long_description",
|
|
"slug",
|
|
"manually_grantable",
|
|
"query",
|
|
"trigger",
|
|
"target_posts",
|
|
"auto_revoke",
|
|
"show_posts",
|
|
"badge_type_id"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"badge_types",
|
|
"badge"
|
|
]
|
|
}
|