feat: update swagger using script

This commit is contained in:
2025-11-10 21:44:48 +01:00
parent 78989eb9f8
commit a170085b89
3 changed files with 2723 additions and 2482 deletions

View File

@@ -14,8 +14,8 @@ const docTemplate = `{
"email": "sandro@cazzaniga.fr"
},
"license": {
"name": "MIT",
"url": "https://opensource.org/licenses/MIT"
"name": "GPLv3",
"url": "https://www.gnu.org/licenses/gpl-3.0.html"
},
"version": "{{.Version}}"
},
@@ -24,7 +24,7 @@ const docTemplate = `{
"paths": {
"/api": {
"get": {
"description": "Get information about the API endpoints and version",
"description": "Retrieve API metadata, available endpoints, authentication details, and response formats",
"consumes": [
"application/json"
],
@@ -45,7 +45,7 @@ const docTemplate = `{
}
}
},
"/auth/account": {
"/api/auth/account": {
"delete": {
"security": [
{
@@ -91,7 +91,7 @@ const docTemplate = `{
}
}
},
"/auth/account/confirm": {
"/api/auth/account/confirm": {
"post": {
"description": "Confirm account deletion using the provided token",
"consumes": [
@@ -143,7 +143,7 @@ const docTemplate = `{
}
}
},
"/auth/confirm": {
"/api/auth/confirm": {
"get": {
"description": "Confirm user email with verification token",
"consumes": [
@@ -187,7 +187,7 @@ const docTemplate = `{
}
}
},
"/auth/email": {
"/api/auth/email": {
"put": {
"security": [
{
@@ -256,7 +256,7 @@ const docTemplate = `{
}
}
},
"/auth/forgot-password": {
"/api/auth/forgot-password": {
"post": {
"description": "Send a password reset email using a username or email",
"consumes": [
@@ -296,7 +296,7 @@ const docTemplate = `{
}
}
},
"/auth/login": {
"/api/auth/login": {
"post": {
"description": "Authenticate user with username and password",
"consumes": [
@@ -354,7 +354,7 @@ const docTemplate = `{
}
}
},
"/auth/logout": {
"/api/auth/logout": {
"post": {
"security": [
{
@@ -388,7 +388,7 @@ const docTemplate = `{
}
}
},
"/auth/me": {
"/api/auth/me": {
"get": {
"security": [
{
@@ -428,7 +428,7 @@ const docTemplate = `{
}
}
},
"/auth/password": {
"/api/auth/password": {
"put": {
"security": [
{
@@ -485,7 +485,7 @@ const docTemplate = `{
}
}
},
"/auth/refresh": {
"/api/auth/refresh": {
"post": {
"description": "Use a refresh token to get a new access token. This endpoint allows clients to obtain a new access token using a valid refresh token without requiring user credentials.",
"consumes": [
@@ -543,7 +543,7 @@ const docTemplate = `{
}
}
},
"/auth/register": {
"/api/auth/register": {
"post": {
"description": "Register a new user with username, email and password",
"consumes": [
@@ -595,7 +595,7 @@ const docTemplate = `{
}
}
},
"/auth/resend-verification": {
"/api/auth/resend-verification": {
"post": {
"description": "Send a new verification email to the provided address",
"consumes": [
@@ -665,7 +665,7 @@ const docTemplate = `{
}
}
},
"/auth/reset-password": {
"/api/auth/reset-password": {
"post": {
"description": "Reset a user's password using a reset token",
"consumes": [
@@ -711,7 +711,7 @@ const docTemplate = `{
}
}
},
"/auth/revoke": {
"/api/auth/revoke": {
"post": {
"security": [
{
@@ -768,7 +768,7 @@ const docTemplate = `{
}
}
},
"/auth/revoke-all": {
"/api/auth/revoke-all": {
"post": {
"security": [
{
@@ -808,7 +808,7 @@ const docTemplate = `{
}
}
},
"/auth/username": {
"/api/auth/username": {
"put": {
"security": [
{
@@ -871,55 +871,7 @@ const docTemplate = `{
}
}
},
"/health": {
"get": {
"description": "Check if the API is healthy with comprehensive database monitoring",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"api"
],
"summary": "Health check",
"responses": {
"200": {
"description": "Health check successful",
"schema": {
"type": "object",
"additionalProperties": true
}
}
}
}
},
"/metrics": {
"get": {
"description": "Get application metrics including post stats, user stats, vote stats, and database performance metrics",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"api"
],
"summary": "Get metrics",
"responses": {
"200": {
"description": "Application metrics with vote statistics and database monitoring",
"schema": {
"type": "object",
"additionalProperties": true
}
}
}
}
},
"/posts": {
"/api/posts": {
"get": {
"description": "Get a list of posts with pagination. Posts include vote statistics (up_votes, down_votes, score) and current user's vote status.",
"consumes": [
@@ -1037,7 +989,7 @@ const docTemplate = `{
}
}
},
"/posts/search": {
"/api/posts/search": {
"get": {
"description": "Search posts by title or content keywords. Results include vote statistics and current user's vote status.",
"consumes": [
@@ -1094,7 +1046,7 @@ const docTemplate = `{
}
}
},
"/posts/title": {
"/api/posts/title": {
"get": {
"description": "Fetch the HTML title for the provided URL",
"consumes": [
@@ -1144,7 +1096,7 @@ const docTemplate = `{
}
}
},
"/posts/{id}": {
"/api/posts/{id}": {
"get": {
"description": "Get a post by ID with vote statistics and current user's vote status",
"consumes": [
@@ -1333,7 +1285,7 @@ const docTemplate = `{
}
}
},
"/posts/{id}/vote": {
"/api/posts/{id}/vote": {
"get": {
"security": [
{
@@ -1515,7 +1467,7 @@ const docTemplate = `{
}
}
},
"/posts/{id}/votes": {
"/api/posts/{id}/votes": {
"get": {
"security": [
{
@@ -1570,7 +1522,7 @@ const docTemplate = `{
}
}
},
"/users": {
"/api/users": {
"get": {
"security": [
{
@@ -1687,7 +1639,7 @@ const docTemplate = `{
}
}
},
"/users/{id}": {
"/api/users/{id}": {
"get": {
"security": [
{
@@ -1748,7 +1700,7 @@ const docTemplate = `{
}
}
},
"/users/{id}/posts": {
"/api/users/{id}/posts": {
"get": {
"security": [
{
@@ -1816,6 +1768,52 @@ const docTemplate = `{
}
}
}
},
"/health": {
"get": {
"description": "Check the API health status along with database connectivity details",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"api"
],
"summary": "Health check",
"responses": {
"200": {
"description": "Health check successful",
"schema": {
"$ref": "#/definitions/handlers.CommonResponse"
}
}
}
}
},
"/metrics": {
"get": {
"description": "Retrieve application metrics including aggregate counts and database performance data",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"api"
],
"summary": "Get metrics",
"responses": {
"200": {
"description": "Application metrics retrieved successfully",
"schema": {
"$ref": "#/definitions/handlers.CommonResponse"
}
}
}
}
}
},
"definitions": {
@@ -1906,6 +1904,21 @@ const docTemplate = `{
}
}
},
"handlers.CommonResponse": {
"type": "object",
"properties": {
"data": {},
"error": {
"type": "string"
},
"message": {
"type": "string"
},
"success": {
"type": "boolean"
}
}
},
"handlers.ConfirmAccountDeletionRequest": {
"type": "object",
"properties": {

View File

@@ -1,5 +1,7 @@
{
"schemes": ["http"],
"schemes": [
"http"
],
"swagger": "2.0",
"info": {
"description": "Goyco is a Y Combinator-style news aggregation platform API.",
@@ -9,8 +11,8 @@
"email": "sandro@cazzaniga.fr"
},
"license": {
"name": "MIT",
"url": "https://opensource.org/licenses/MIT"
"name": "GPLv3",
"url": "https://www.gnu.org/licenses/gpl-3.0.html"
},
"version": "0.1.0"
},
@@ -19,10 +21,16 @@
"paths": {
"/api": {
"get": {
"description": "Get information about the API endpoints and version",
"consumes": ["application/json"],
"produces": ["application/json"],
"tags": ["api"],
"description": "Retrieve API metadata, available endpoints, authentication details, and response formats",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"api"
],
"summary": "Get API information",
"responses": {
"200": {
@@ -34,7 +42,7 @@
}
}
},
"/auth/account": {
"/api/auth/account": {
"delete": {
"security": [
{
@@ -42,9 +50,15 @@
}
],
"description": "Initiate the deletion process for the authenticated user's account",
"consumes": ["application/json"],
"produces": ["application/json"],
"tags": ["auth"],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"auth"
],
"summary": "Request account deletion",
"responses": {
"200": {
@@ -74,12 +88,18 @@
}
}
},
"/auth/account/confirm": {
"/api/auth/account/confirm": {
"post": {
"description": "Confirm account deletion using the provided token",
"consumes": ["application/json"],
"produces": ["application/json"],
"tags": ["auth"],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"auth"
],
"summary": "Confirm account deletion",
"parameters": [
{
@@ -120,12 +140,18 @@
}
}
},
"/auth/confirm": {
"/api/auth/confirm": {
"get": {
"description": "Confirm user email with verification token",
"consumes": ["application/json"],
"produces": ["application/json"],
"tags": ["auth"],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"auth"
],
"summary": "Confirm email address",
"parameters": [
{
@@ -158,7 +184,7 @@
}
}
},
"/auth/email": {
"/api/auth/email": {
"put": {
"security": [
{
@@ -166,9 +192,15 @@
}
],
"description": "Update the authenticated user's email address",
"consumes": ["application/json"],
"produces": ["application/json"],
"tags": ["auth"],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"auth"
],
"summary": "Update email address",
"parameters": [
{
@@ -221,12 +253,18 @@
}
}
},
"/auth/forgot-password": {
"/api/auth/forgot-password": {
"post": {
"description": "Send a password reset email using a username or email",
"consumes": ["application/json"],
"produces": ["application/json"],
"tags": ["auth"],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"auth"
],
"summary": "Request a password reset",
"parameters": [
{
@@ -255,12 +293,18 @@
}
}
},
"/auth/login": {
"/api/auth/login": {
"post": {
"description": "Authenticate user with username and password",
"consumes": ["application/json"],
"produces": ["application/json"],
"tags": ["auth"],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"auth"
],
"summary": "Login user",
"parameters": [
{
@@ -307,7 +351,7 @@
}
}
},
"/auth/logout": {
"/api/auth/logout": {
"post": {
"security": [
{
@@ -315,9 +359,15 @@
}
],
"description": "Logout the authenticated user and invalidate their session",
"consumes": ["application/json"],
"produces": ["application/json"],
"tags": ["auth"],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"auth"
],
"summary": "Logout user",
"responses": {
"200": {
@@ -335,7 +385,7 @@
}
}
},
"/auth/me": {
"/api/auth/me": {
"get": {
"security": [
{
@@ -343,9 +393,15 @@
}
],
"description": "Retrieve the authenticated user's profile information",
"consumes": ["application/json"],
"produces": ["application/json"],
"tags": ["auth"],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"auth"
],
"summary": "Get current user profile",
"responses": {
"200": {
@@ -369,7 +425,7 @@
}
}
},
"/auth/password": {
"/api/auth/password": {
"put": {
"security": [
{
@@ -377,9 +433,15 @@
}
],
"description": "Update the authenticated user's password",
"consumes": ["application/json"],
"produces": ["application/json"],
"tags": ["auth"],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"auth"
],
"summary": "Update password",
"parameters": [
{
@@ -420,12 +482,18 @@
}
}
},
"/auth/refresh": {
"/api/auth/refresh": {
"post": {
"description": "Use a refresh token to get a new access token. This endpoint allows clients to obtain a new access token using a valid refresh token without requiring user credentials.",
"consumes": ["application/json"],
"produces": ["application/json"],
"tags": ["auth"],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"auth"
],
"summary": "Refresh access token",
"parameters": [
{
@@ -472,12 +540,18 @@
}
}
},
"/auth/register": {
"/api/auth/register": {
"post": {
"description": "Register a new user with username, email and password",
"consumes": ["application/json"],
"produces": ["application/json"],
"tags": ["auth"],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"auth"
],
"summary": "Register a new user",
"parameters": [
{
@@ -518,12 +592,18 @@
}
}
},
"/auth/resend-verification": {
"/api/auth/resend-verification": {
"post": {
"description": "Send a new verification email to the provided address",
"consumes": ["application/json"],
"produces": ["application/json"],
"tags": ["auth"],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"auth"
],
"summary": "Resend verification email",
"parameters": [
{
@@ -582,12 +662,18 @@
}
}
},
"/auth/reset-password": {
"/api/auth/reset-password": {
"post": {
"description": "Reset a user's password using a reset token",
"consumes": ["application/json"],
"produces": ["application/json"],
"tags": ["auth"],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"auth"
],
"summary": "Reset password",
"parameters": [
{
@@ -622,7 +708,7 @@
}
}
},
"/auth/revoke": {
"/api/auth/revoke": {
"post": {
"security": [
{
@@ -630,9 +716,15 @@
}
],
"description": "Revoke a specific refresh token. This endpoint allows authenticated users to invalidate a specific refresh token, preventing its future use.",
"consumes": ["application/json"],
"produces": ["application/json"],
"tags": ["auth"],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"auth"
],
"summary": "Revoke refresh token",
"parameters": [
{
@@ -673,7 +765,7 @@
}
}
},
"/auth/revoke-all": {
"/api/auth/revoke-all": {
"post": {
"security": [
{
@@ -681,9 +773,15 @@
}
],
"description": "Revoke all refresh tokens for the authenticated user. This endpoint allows users to invalidate all their refresh tokens at once, effectively logging them out from all devices.",
"consumes": ["application/json"],
"produces": ["application/json"],
"tags": ["auth"],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"auth"
],
"summary": "Revoke all user tokens",
"responses": {
"200": {
@@ -707,7 +805,7 @@
}
}
},
"/auth/username": {
"/api/auth/username": {
"put": {
"security": [
{
@@ -715,9 +813,15 @@
}
],
"description": "Update the authenticated user's username",
"consumes": ["application/json"],
"produces": ["application/json"],
"tags": ["auth"],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"auth"
],
"summary": "Update username",
"parameters": [
{
@@ -764,48 +868,18 @@
}
}
},
"/health": {
"get": {
"description": "Check if the API is healthy with comprehensive database monitoring",
"consumes": ["application/json"],
"produces": ["application/json"],
"tags": ["api"],
"summary": "Health check",
"responses": {
"200": {
"description": "Health check successful",
"schema": {
"type": "object",
"additionalProperties": true
}
}
}
}
},
"/metrics": {
"get": {
"description": "Get application metrics including post stats, user stats, vote stats, and database performance metrics",
"consumes": ["application/json"],
"produces": ["application/json"],
"tags": ["api"],
"summary": "Get metrics",
"responses": {
"200": {
"description": "Application metrics with vote statistics and database monitoring",
"schema": {
"type": "object",
"additionalProperties": true
}
}
}
}
},
"/posts": {
"/api/posts": {
"get": {
"description": "Get a list of posts with pagination. Posts include vote statistics (up_votes, down_votes, score) and current user's vote status.",
"consumes": ["application/json"],
"produces": ["application/json"],
"tags": ["posts"],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"posts"
],
"summary": "Get posts",
"parameters": [
{
@@ -851,9 +925,15 @@
}
],
"description": "Create a new post with URL and optional title",
"consumes": ["application/json"],
"produces": ["application/json"],
"tags": ["posts"],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"posts"
],
"summary": "Create a new post",
"parameters": [
{
@@ -906,12 +986,18 @@
}
}
},
"/posts/search": {
"/api/posts/search": {
"get": {
"description": "Search posts by title or content keywords. Results include vote statistics and current user's vote status.",
"consumes": ["application/json"],
"produces": ["application/json"],
"tags": ["posts"],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"posts"
],
"summary": "Search posts",
"parameters": [
{
@@ -957,12 +1043,18 @@
}
}
},
"/posts/title": {
"/api/posts/title": {
"get": {
"description": "Fetch the HTML title for the provided URL",
"consumes": ["application/json"],
"produces": ["application/json"],
"tags": ["posts"],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"posts"
],
"summary": "Fetch title from URL",
"parameters": [
{
@@ -1001,12 +1093,18 @@
}
}
},
"/posts/{id}": {
"/api/posts/{id}": {
"get": {
"description": "Get a post by ID with vote statistics and current user's vote status",
"consumes": ["application/json"],
"produces": ["application/json"],
"tags": ["posts"],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"posts"
],
"summary": "Get a single post",
"parameters": [
{
@@ -1051,9 +1149,15 @@
}
],
"description": "Update the title and content of a post owned by the authenticated user",
"consumes": ["application/json"],
"produces": ["application/json"],
"tags": ["posts"],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"posts"
],
"summary": "Update a post",
"parameters": [
{
@@ -1119,9 +1223,15 @@
}
],
"description": "Delete a post owned by the authenticated user",
"consumes": ["application/json"],
"produces": ["application/json"],
"tags": ["posts"],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"posts"
],
"summary": "Delete a post",
"parameters": [
{
@@ -1172,7 +1282,7 @@
}
}
},
"/posts/{id}/vote": {
"/api/posts/{id}/vote": {
"get": {
"security": [
{
@@ -1180,9 +1290,15 @@
}
],
"description": "Retrieve the current user's vote for a specific post. Requires authentication and returns the vote type if it exists.\n\n**Response:**\n- If vote exists: Returns vote details with contextual metadata (including `is_anonymous`)\n- If no vote: Returns success with null vote data and metadata",
"consumes": ["application/json"],
"produces": ["application/json"],
"tags": ["votes"],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"votes"
],
"summary": "Get current user's vote",
"parameters": [
{
@@ -1227,9 +1343,15 @@
}
],
"description": "Vote on a post (upvote, downvote, or remove vote). Authentication is required; the vote is performed on behalf of the current user.\n\n**Vote Types:**\n- `up`: Upvote the post\n- `down`: Downvote the post\n- `none`: Remove existing vote\n\n**Response includes:**\n- Updated post vote counts (up_votes, down_votes, score)\n- Success message",
"consumes": ["application/json"],
"produces": ["application/json"],
"tags": ["votes"],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"votes"
],
"summary": "Cast a vote on a post",
"parameters": [
{
@@ -1289,9 +1411,15 @@
}
],
"description": "Remove a vote from a post for the authenticated user. This is equivalent to casting a vote with type 'none'.",
"consumes": ["application/json"],
"produces": ["application/json"],
"tags": ["votes"],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"votes"
],
"summary": "Remove a vote",
"parameters": [
{
@@ -1336,7 +1464,7 @@
}
}
},
"/posts/{id}/votes": {
"/api/posts/{id}/votes": {
"get": {
"security": [
{
@@ -1344,9 +1472,15 @@
}
],
"description": "Retrieve all votes for a specific post. Returns all votes in a single format.\n\n**Authentication Required:** Yes (Bearer token)\n\n**Response includes:**\n- Array of all votes\n- Total vote count\n- Each vote includes type and unauthenticated status",
"consumes": ["application/json"],
"produces": ["application/json"],
"tags": ["votes"],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"votes"
],
"summary": "Get post votes",
"parameters": [
{
@@ -1385,7 +1519,7 @@
}
}
},
"/users": {
"/api/users": {
"get": {
"security": [
{
@@ -1393,9 +1527,15 @@
}
],
"description": "Retrieve a paginated list of users",
"consumes": ["application/json"],
"produces": ["application/json"],
"tags": ["users"],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"users"
],
"summary": "List users",
"parameters": [
{
@@ -1441,9 +1581,15 @@
}
],
"description": "Create a new user account",
"consumes": ["application/json"],
"produces": ["application/json"],
"tags": ["users"],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"users"
],
"summary": "Create user",
"parameters": [
{
@@ -1490,7 +1636,7 @@
}
}
},
"/users/{id}": {
"/api/users/{id}": {
"get": {
"security": [
{
@@ -1498,9 +1644,15 @@
}
],
"description": "Retrieve a specific user by ID",
"consumes": ["application/json"],
"produces": ["application/json"],
"tags": ["users"],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"users"
],
"summary": "Get user",
"parameters": [
{
@@ -1545,7 +1697,7 @@
}
}
},
"/users/{id}/posts": {
"/api/users/{id}/posts": {
"get": {
"security": [
{
@@ -1553,9 +1705,15 @@
}
],
"description": "Retrieve posts created by a specific user",
"consumes": ["application/json"],
"produces": ["application/json"],
"tags": ["users"],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"users"
],
"summary": "Get user posts",
"parameters": [
{
@@ -1607,6 +1765,52 @@
}
}
}
},
"/health": {
"get": {
"description": "Check the API health status along with database connectivity details",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"api"
],
"summary": "Health check",
"responses": {
"200": {
"description": "Health check successful",
"schema": {
"$ref": "#/definitions/handlers.CommonResponse"
}
}
}
}
},
"/metrics": {
"get": {
"description": "Retrieve application metrics including aggregate counts and database performance data",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"api"
],
"summary": "Get metrics",
"responses": {
"200": {
"description": "Application metrics retrieved successfully",
"schema": {
"$ref": "#/definitions/handlers.CommonResponse"
}
}
}
}
}
},
"definitions": {
@@ -1697,6 +1901,21 @@
}
}
},
"handlers.CommonResponse": {
"type": "object",
"properties": {
"data": {},
"error": {
"type": "string"
},
"message": {
"type": "string"
},
"success": {
"type": "boolean"
}
}
},
"handlers.ConfirmAccountDeletionRequest": {
"type": "object",
"properties": {
@@ -1758,7 +1977,9 @@
},
"handlers.RefreshTokenRequest": {
"type": "object",
"required": ["refresh_token"],
"required": [
"refresh_token"
],
"properties": {
"refresh_token": {
"type": "string",
@@ -1801,7 +2022,9 @@
},
"handlers.RevokeTokenRequest": {
"type": "object",
"required": ["refresh_token"],
"required": [
"refresh_token"
],
"properties": {
"refresh_token": {
"type": "string",
@@ -1868,7 +2091,11 @@
"properties": {
"type": {
"type": "string",
"enum": ["up", "down", "none"],
"enum": [
"up",
"down",
"none"
],
"example": "up"
}
}

File diff suppressed because it is too large Load Diff