diff --git a/dist/compatible/openapi-3.0.yaml b/dist/compatible/openapi-3.0.yaml index 012bd87..2daecda 100644 --- a/dist/compatible/openapi-3.0.yaml +++ b/dist/compatible/openapi-3.0.yaml @@ -180,6 +180,7 @@ components: - Member - Moderator - Admin + - NonMember type: string user_results: $ref: '#/components/schemas/UserResults' @@ -875,8 +876,11 @@ components: name: type: string path: - items: {} - type: list + items: + oneOf: + - type: string + - type: integer + type: array retry_after: type: integer source: @@ -1962,7 +1966,7 @@ components: - TimelineCoverBehaviorNavigate type: string url: - type: TimelineCoverBehaviorUrl + $ref: '#/components/schemas/TimelineCoverBehaviorUrl' required: - type TimelineCoverBehaviorUrl: diff --git a/dist/docs/openapi-3.0.yaml b/dist/docs/openapi-3.0.yaml index aad3248..5e4f820 100644 --- a/dist/docs/openapi-3.0.yaml +++ b/dist/docs/openapi-3.0.yaml @@ -180,6 +180,7 @@ components: - Member - Moderator - Admin + - NonMember type: string user_results: $ref: '#/components/schemas/UserResults' @@ -875,8 +876,11 @@ components: name: type: string path: - items: {} - type: list + items: + oneOf: + - type: string + - type: integer + type: array retry_after: type: integer source: @@ -1962,7 +1966,7 @@ components: - TimelineCoverBehaviorNavigate type: string url: - type: TimelineCoverBehaviorUrl + $ref: '#/components/schemas/TimelineCoverBehaviorUrl' required: - type TimelineCoverBehaviorUrl: diff --git a/src/openapi/response/error.yaml b/src/openapi/response/error.yaml index b512f1f..a969acb 100644 --- a/src/openapi/response/error.yaml +++ b/src/openapi/response/error.yaml @@ -26,8 +26,11 @@ components: items: $ref: "#/components/schemas/Location" path: - type: list - items: {} #List[Union[str,int]] + type: array + items: + oneOf: + - type: string + - type: integer extensions: $ref: "#/components/schemas/ErrorExtensions" code: diff --git a/src/openapi/schemas/instruction.yaml b/src/openapi/schemas/instruction.yaml index d792bea..427109e 100644 --- a/src/openapi/schemas/instruction.yaml +++ b/src/openapi/schemas/instruction.yaml @@ -285,7 +285,7 @@ components: type: string enum: [TimelineCoverBehaviorDismiss, TimelineCoverBehaviorNavigate] url: - type: TimelineCoverBehaviorUrl + $ref: "#/components/schemas/TimelineCoverBehaviorUrl" TimelineCoverBehaviorUrl: required: diff --git a/src/openapi/schemas/tweet.yaml b/src/openapi/schemas/tweet.yaml index 8d2e341..5270dbd 100644 --- a/src/openapi/schemas/tweet.yaml +++ b/src/openapi/schemas/tweet.yaml @@ -438,7 +438,7 @@ components: $ref: "#/components/schemas/Community" role: type: string - enum: [Member, Moderator, Admin] + enum: [Member, Moderator, Admin, NonMember] user_results: $ref: "user.yaml#/components/schemas/UserResults"