mirror of
https://github.com/LemmyNet/joinlemmy-site.git
synced 2024-11-22 04:11:15 +00:00
Reverted anyOf to oneOf
This commit is contained in:
parent
1a1ee6dc47
commit
22f8124b0a
1 changed files with 4 additions and 4 deletions
|
@ -59,7 +59,7 @@ info:
|
||||||
### The 'join' channels - CommunityJoin, ModJoin, PostJoin, UserJoin
|
### The 'join' channels - CommunityJoin, ModJoin, PostJoin, UserJoin
|
||||||
|
|
||||||
Most API responses generate an immediate and direct (synchronous) response to to the preceding API request: one of an error or a success response.
|
Most API responses generate an immediate and direct (synchronous) response to to the preceding API request: one of an error or a success response.
|
||||||
However, for the ‘join’ requests (**CommunityJoin**, **ModJoin**, **PostJoin** and **UserJoin**), you can also receive any of several ‘as it happens’ (asynchronous) responses.
|
However, for the ‘join’ requests (**CommunityJoin**, **ModJoin**, **PostJoin** and **UserJoin**), you can also receive one of several ‘as it happens’ (asynchronous) responses.
|
||||||
|
|
||||||
### The HTTP API
|
### The HTTP API
|
||||||
|
|
||||||
|
@ -539,7 +539,7 @@ channels:
|
||||||
tags:
|
tags:
|
||||||
- name: User, authentication and admin
|
- name: User, authentication and admin
|
||||||
message:
|
message:
|
||||||
anyOf:
|
oneOf:
|
||||||
- $ref: "#/components/messages/userJoinResponse"
|
- $ref: "#/components/messages/userJoinResponse"
|
||||||
- $ref: "#/components/messages/errorResponse"
|
- $ref: "#/components/messages/errorResponse"
|
||||||
- $ref: "#/components/messages/createCommentLikeResponse"
|
- $ref: "#/components/messages/createCommentLikeResponse"
|
||||||
|
@ -1062,7 +1062,7 @@ channels:
|
||||||
tags:
|
tags:
|
||||||
- name: Community
|
- name: Community
|
||||||
message:
|
message:
|
||||||
anyOf:
|
oneOf:
|
||||||
- $ref: "#/components/messages/communityJoinResponse"
|
- $ref: "#/components/messages/communityJoinResponse"
|
||||||
- $ref: "#/components/messages/errorResponse"
|
- $ref: "#/components/messages/errorResponse"
|
||||||
- $ref: "#/components/messages/createPostResponse"
|
- $ref: "#/components/messages/createPostResponse"
|
||||||
|
@ -1366,7 +1366,7 @@ channels:
|
||||||
tags:
|
tags:
|
||||||
- name: Post
|
- name: Post
|
||||||
message:
|
message:
|
||||||
anyOf:
|
oneOf:
|
||||||
- $ref: "#/components/messages/postJoinResponse"
|
- $ref: "#/components/messages/postJoinResponse"
|
||||||
- $ref: "#/components/messages/errorResponse"
|
- $ref: "#/components/messages/errorResponse"
|
||||||
- $ref: "#/components/messages/createCommentResponse"
|
- $ref: "#/components/messages/createCommentResponse"
|
||||||
|
|
Loading…
Reference in a new issue