Skip to content

Commit

Permalink
Mild improvement to asyncapi schema
Browse files Browse the repository at this point in the history
  • Loading branch information
DiamondJoseph committed Nov 14, 2024
1 parent 05e03ea commit e305a25
Showing 1 changed file with 8 additions and 36 deletions.
44 changes: 8 additions & 36 deletions docs/reference/asyncapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ channels:
- $ref: "#/components/messages/taggedDatumDocument"
- $ref: "#/components/messages/taggedResourceStream"
- $ref: "#/components/messages/taggedDatumStream"
- $ref: "#/components/messages/taggedEventPage"
- $ref: "#/components/messages/taggedDatumPage"
components:
messages: # Defined as Components to allow referencing from other APIs. # TODO: Define protocol specific correlationId bindings
taggedStartDocument:
Expand All @@ -43,7 +41,7 @@ components:
type: object
properties:
name:
type: string
const: "start"
doc:
$ref: "https://raw.githubusercontent.com/bluesky/event-model/refs/tags/v1.22.1/event_model/schemas/run_start.json"
taggedStopDocument:
Expand All @@ -55,7 +53,7 @@ components:
type: object
properties:
name:
type: string
const: "stop"
doc:
$ref: "https://raw.githubusercontent.com/bluesky/event-model/refs/tags/v1.22.1/event_model/schemas/run_stop.json"
taggedDescriptorDocument:
Expand All @@ -67,7 +65,7 @@ components:
type: object
properties:
name:
type: string
const: "descriptor"
doc:
$ref: "https://raw.githubusercontent.com/bluesky/event-model/refs/tags/v1.22.1/event_model/schemas/event_descriptor.json"
taggedEventDocument:
Expand All @@ -79,22 +77,9 @@ components:
type: object
properties:
name:
type: string
const: "event"
doc:
$ref: "https://raw.githubusercontent.com/bluesky/event-model/refs/tags/v1.22.1/event_model/schemas/event.json"
taggedEventPage:
messageId: eventPage
deprecated: true
summary: Page style collection of events
headers:
$ref: "#/components/schemas/contextHeaders"
payload:
type: object
properties:
name:
type: string
doc:
$ref: "https://raw.githubusercontent.com/bluesky/event-model/refs/tags/v1.22.1/event_model/schemas/event_page.json"
taggedResourceDocument:
messageId: resource
summary: Describes an external resource (file, database entry etc.) that is to be referenced by later datum
Expand All @@ -104,7 +89,7 @@ components:
type: object
properties:
name:
type: string
const: "resource"
doc:
$ref: "https://raw.githubusercontent.com/bluesky/event-model/refs/tags/v1.22.1/event_model/schemas/resource.json"
taggedDatumDocument:
Expand All @@ -116,22 +101,9 @@ components:
type: object
properties:
name:
type: string
const: "datum"
doc:
$ref: "https://raw.githubusercontent.com/bluesky/event-model/refs/tags/v1.22.1/event_model/schemas/datum.json"
taggedDatumPage:
messageId: datumPage
deprecated: true
summary: Page style collection of datum
headers:
$ref: "#/components/schemas/contextHeaders"
payload:
type: object
properties:
name:
type: string
doc:
$ref: "https://raw.githubusercontent.com/bluesky/event-model/refs/tags/v1.22.1/event_model/schemas/datum_page.json"
taggedResourceStream:
messageId: streamResource
summary: Describes an external resource (file, database entry etc.) that is to be referenced by later Stream Datum
Expand All @@ -141,7 +113,7 @@ components:
type: object
properties:
name:
type: string
const: "stream_resource"
doc:
$ref: "https://raw.githubusercontent.com/bluesky/event-model/refs/tags/v1.22.1/event_model/schemas/stream_resource.json"
taggedDatumStream:
Expand All @@ -153,7 +125,7 @@ components:
type: object
properties:
name:
type: string
const: "stream_datum"
doc:
$ref: "https://raw.githubusercontent.com/bluesky/event-model/refs/tags/v1.22.1/event_model/schemas/stream_datum.json"
workerStateEvent:
Expand Down

0 comments on commit e305a25

Please sign in to comment.