mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-03-07 04:29:55 +01:00
Merge pull request #78 from chriskd/misc-validation-fixes
Schema updates to correct validation errors
This commit is contained in:
commit
408fd99a69
3 changed files with 6 additions and 9 deletions
|
|
@ -426,7 +426,7 @@ components:
|
|||
$ref: "#/components/schemas/Community"
|
||||
role:
|
||||
type: string
|
||||
enum: [Member, Moderator]
|
||||
enum: [Member, Moderator, Admin]
|
||||
user_results:
|
||||
$ref: "user.yaml#/components/schemas/UserResults"
|
||||
|
||||
|
|
@ -488,10 +488,10 @@ components:
|
|||
$ref: "#/components/schemas/CommunityJoinRequestsResult"
|
||||
join_policy:
|
||||
type: string
|
||||
enum: [Open]
|
||||
enum: [Open, RestrictedJoinRequestsRequireModeratorApproval]
|
||||
invites_policy:
|
||||
type: string
|
||||
enum: [MemberInvitesAllowed]
|
||||
enum: [MemberInvitesAllowed, ModeratorInvitesAllowed]
|
||||
is_pinned:
|
||||
type: boolean
|
||||
members_facepile_results:
|
||||
|
|
@ -649,11 +649,7 @@ components:
|
|||
BirdwatchPivot:
|
||||
required:
|
||||
- "destinationUrl"
|
||||
- "footer"
|
||||
- "note"
|
||||
- "subtitle"
|
||||
- "title"
|
||||
- "shorttitle"
|
||||
- "iconType"
|
||||
properties:
|
||||
destinationUrl:
|
||||
|
|
@ -671,7 +667,7 @@ components:
|
|||
type: string
|
||||
visualStyle:
|
||||
type: string
|
||||
enum: [Default]
|
||||
enum: [Default, Tentative]
|
||||
iconType:
|
||||
type: string
|
||||
enum: [BirdwatchV1Icon]
|
||||
|
|
@ -968,6 +964,7 @@ components:
|
|||
- "stale_tweet"
|
||||
- "community_tweet_non_member_public_community"
|
||||
- "community_tweet_non_member_closed_community"
|
||||
- "blocked_viewer"
|
||||
place:
|
||||
additionalProperties: true # todo
|
||||
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ components:
|
|||
Community,
|
||||
CommunityDeleteActionUnavailable,
|
||||
CommunityJoinAction,
|
||||
CommunityJoinActionUnavailable,
|
||||
CommunityLeaveActionUnavailable,
|
||||
CommunityTweetPinActionUnavailable,
|
||||
CommunityTweetUnpinActionUnavailable,
|
||||
|
|
|
|||
|
|
@ -146,7 +146,6 @@ components:
|
|||
required:
|
||||
- "description"
|
||||
- "verified_since_msec"
|
||||
- "override_verified_year"
|
||||
properties:
|
||||
description:
|
||||
$ref: "#/components/schemas/UserVerificationInfoReasonDescription"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue