diff --git a/static/openapi3-latest.json b/static/openapi3-latest.json index 3999f040..caf2ca26 100644 --- a/static/openapi3-latest.json +++ b/static/openapi3-latest.json @@ -4879,7 +4879,12 @@ "x-go-name": "Name" }, "permission": { - "$ref": "#/components/schemas/RepoWritePermission" + "allOf": [ + { + "$ref": "#/components/schemas/RepoWritePermission" + } + ], + "description": "All units have this permission (read/write/admin)" }, "units": { "deprecated": true, @@ -4956,7 +4961,6 @@ "x-go-name": "FullName" }, "login_name": { - "default": "empty", "description": "identifier of the user, provided by the external authenticator (if configured)", "type": "string", "x-go-name": "LoginName" @@ -6130,7 +6134,12 @@ "x-go-name": "Name" }, "permission": { - "$ref": "#/components/schemas/RepoWritePermission" + "allOf": [ + { + "$ref": "#/components/schemas/RepoWritePermission" + } + ], + "description": "All units have this permission (read/write/admin)" }, "units": { "deprecated": true, @@ -6234,7 +6243,6 @@ "x-go-name": "Location" }, "login_name": { - "default": "empty", "description": "identifier of the user, provided by the external authenticator (if configured)", "type": "string", "x-go-name": "LoginName" @@ -6286,8 +6294,7 @@ } }, "required": [ - "source_id", - "login_name" + "source_id" ], "type": "object", "x-go-package": "gitea.dev/modules/structs" @@ -10658,7 +10665,6 @@ "x-go-name": "UserName" }, "login_name": { - "default": "empty", "description": "identifier of the user, provided by the external authenticator (if configured)", "type": "string", "x-go-name": "LoginName" diff --git a/static/swagger-latest.json b/static/swagger-latest.json index 99360fbf..efc648ca 100644 --- a/static/swagger-latest.json +++ b/static/swagger-latest.json @@ -27790,6 +27790,7 @@ "x-go-name": "Name" }, "permission": { + "description": "All units have this permission (read/write/admin)", "type": "string", "enum": [ "read", @@ -27879,7 +27880,6 @@ "login_name": { "description": "identifier of the user, provided by the external authenticator (if configured)", "type": "string", - "default": "empty", "x-go-name": "LoginName" }, "must_change_password": { @@ -29061,6 +29061,7 @@ "x-go-name": "Name" }, "permission": { + "description": "All units have this permission (read/write/admin)", "type": "string", "enum": [ "read", @@ -29124,8 +29125,7 @@ "description": "EditUserOption edit user options", "type": "object", "required": [ - "source_id", - "login_name" + "source_id" ], "properties": { "active": { @@ -29177,7 +29177,6 @@ "login_name": { "description": "identifier of the user, provided by the external authenticator (if configured)", "type": "string", - "default": "empty", "x-go-name": "LoginName" }, "max_repo_creation": { @@ -33551,7 +33550,6 @@ "login_name": { "description": "identifier of the user, provided by the external authenticator (if configured)", "type": "string", - "default": "empty", "x-go-name": "LoginName" }, "prohibit_login": {