ActivityPub-federated video streaming platform using P2P directly in your web browser
add missing user update me fields in openapi spec
Rigel Kent77b0c6b58fdc
diff --git a/support/doc/api/openapi.yaml b/support/doc/api/openapi.yamlindex b538b6f676..c201b52baf 100644--- a/support/doc/api/openapi.yaml+++ b/support/doc/api/openapi.yaml@@ -4196,20 +4196,19 @@ components:maxLength: 36username:type: string- description: The username of the user+ description: immutable name of the user, used to find or mention its actorexample: chocobozzzpattern: '/^[a-z0-9._]{1,50}$/'minLength: 1maxLength: 50usernameChannel:type: string- description: The username for the default channel+ description: immutable name of the channel, used to interact with its actorexample: The Capybara Channelpattern: '/^[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\\-_.:]+$/'password:type: stringformat: password- description: The password of the userminLength: 6maxLength: 255@@ -5019,7 +5018,7 @@ components:type: stringformat: urlname:- description: immutable name of the actor+ description: immutable name of the actor, used to find or mention itallOf:- $ref: '#/components/schemas/username'host:@@ -5055,7 +5054,9 @@ components:- $ref: '#/components/schemas/User/properties/id'displayName:type: string- description: name displayed on the account's profile+ description: editable name of the account, displayed in its representations+ minLength: 3+ maxLength: 120description:type: stringdescription: text or bio displayed on the account's profile@@ -5806,9 +5807,9 @@ components:UpdateUser:properties:email:- type: string- format: emaildescription: The updated email of the user+ allOf:+ - $ref: '#/components/schemas/User/properties/email'emailVerified:type: booleandescription: Set the email as verified@@ -5828,28 +5829,54 @@ components:adminFlags:$ref: '#/components/schemas/UserAdminFlags'UpdateMe:+ # see shared/models/users/user-update-me.model.ts:properties:password:$ref: '#/components/schemas/password'+ currentPassword:+ $ref: '#/components/schemas/password'email:+ description: new email used for login and service communications+ allOf:+ - $ref: '#/components/schemas/User/properties/email'+ displayName:type: string- format: email- description: Your new email+ description: new name of the user in its representations+ minLength: 3+ maxLength: 120displayNSFW:type: string- description: Your new displayNSFW+ description: new NSFW display policyenum:- 'true'- 'false'- both+ webTorrentEnabled:+ type: boolean+ description: whether to enable P2P in the player or notautoPlayVideo:type: boolean- description: Your new autoPlayVideo- required:- - password- - displayNSFW- - autoPlayVideo+ description: new preference regarding playing videos automatically+ autoPlayNextVideo:+ type: boolean+ description: new preference regarding playing following videos automatically+ autoPlayNextVideoPlaylist:+ type: boolean+ description: new preference regarding playing following playlist videos automatically+ videosHistoryEnabled:+ type: boolean+ description: whether to keep track of watched history or not+ videoLanguages:+ type: array+ items:+ type: string+ description: list of languages to filter videos down to+ theme:+ type: string+ noInstanceConfigWarningModal:+ type: boolean+ noWelcomeModal:+ type: booleanGetMeVideoRating:properties:id:@@ -5881,28 +5908,28 @@ components:RegisterUser:properties:username:- $ref: '#/components/schemas/username'+ description: immutable name of the user, used to find or mention its actor+ allOf:+ - $ref: '#/components/schemas/username'password:$ref: '#/components/schemas/password'email:type: stringformat: email- description: The email of the user+ description: email of the user, used for login or service communicationsdisplayName:type: string- description: The user display name+ description: editable name of the user, displayed in its representationsminLength: 1maxLength: 120channel:type: object+ description: channel base information used to create the first channel of the userproperties:name:$ref: '#/components/schemas/usernameChannel'displayName:- type: string- description: The display name for the default channel- minLength: 1- maxLength: 120+ $ref: '#/components/schemas/VideoChannel/properties/displayName'required:- username- password@@ -5913,6 +5940,7 @@ components:# GET/POST/PUT propertiesdisplayName:type: string+ description: editable name of the channel, displayed in its representationsexample: Videos of FramasoftminLength: 1maxLength: 120