mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 15:40:26 +01:00
build
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
328543616c
commit
3845a1b58e
30 changed files with 2124 additions and 0 deletions
83
dist/dart/schemas/instruction.yaml
vendored
Normal file
83
dist/dart/schemas/instruction.yaml
vendored
Normal file
|
|
@ -0,0 +1,83 @@
|
|||
components:
|
||||
schemas:
|
||||
InstructionType:
|
||||
enum:
|
||||
- TimelineAddEntries
|
||||
- TimelineClearCache
|
||||
- TimelinePinEntry
|
||||
- TimelineTerminateTimeline
|
||||
type: string
|
||||
InstructionUnion:
|
||||
discriminator:
|
||||
mapping":
|
||||
TimelineAddEntries: '#/components/schemas/TimelineAddEntries'
|
||||
TimelineClearCache: '#/components/schemas/TimelineClearCache'
|
||||
TimelinePinEntry: '#/components/schemas/TimelinePinEntry'
|
||||
TimelineTerminateTimeline: '#/components/schemas/TimelineTerminateTimeline'
|
||||
propertyName: type
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/TimelineAddEntries'
|
||||
- $ref: '#/components/schemas/TimelineClearCache'
|
||||
- $ref: '#/components/schemas/TimelinePinEntry'
|
||||
- $ref: '#/components/schemas/TimelineTerminateTimeline'
|
||||
TimelineAddEntries:
|
||||
properties:
|
||||
entries:
|
||||
items:
|
||||
$ref: '#/components/schemas/TimelineAddEntry'
|
||||
type: array
|
||||
type:
|
||||
$ref: '#/components/schemas/InstructionType'
|
||||
type: string
|
||||
required:
|
||||
- type
|
||||
- entries
|
||||
TimelineAddEntry:
|
||||
properties:
|
||||
content:
|
||||
$ref: ./content.yaml#/components/schemas/ContentUnion
|
||||
entryId:
|
||||
pattern: ^[a-z\-]+[0-9]+$
|
||||
type: string
|
||||
sortIndex:
|
||||
pattern: '[0-9]+$'
|
||||
type: string
|
||||
required:
|
||||
- content
|
||||
- entryId
|
||||
- sortIndex
|
||||
TimelineClearCache:
|
||||
properties:
|
||||
type:
|
||||
$ref: '#/components/schemas/InstructionType'
|
||||
type: string
|
||||
required:
|
||||
- type
|
||||
TimelinePinEntry:
|
||||
properties:
|
||||
entry:
|
||||
$ref: '#/components/schemas/TimelineAddEntry'
|
||||
type:
|
||||
$ref: '#/components/schemas/InstructionType'
|
||||
type: string
|
||||
required:
|
||||
- type
|
||||
- entry
|
||||
TimelineTerminateTimeline:
|
||||
properties:
|
||||
direction:
|
||||
enum:
|
||||
- Top
|
||||
- Bottom
|
||||
type: string
|
||||
type:
|
||||
$ref: '#/components/schemas/InstructionType'
|
||||
type: string
|
||||
required:
|
||||
- type
|
||||
- direction
|
||||
info:
|
||||
title: Twitter OpenAPI
|
||||
version: 0.0.1
|
||||
openapi: 3.0.3
|
||||
paths: {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue