Skip to content

Commit

Permalink
Add StateType and StateWrapper objects to the model (#13858)
Browse files Browse the repository at this point in the history
  • Loading branch information
gosusnp committed Jun 16, 2022
1 parent 417ba6f commit 091c5bc
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"$schema": http://json-schema.org/draft-07/schema#
"$id": https://github.com/airbytehq/airbyte/blob/master/airbyte-config/models/src/main/resources/types/StateType.yaml
title: StateType
description: State Types
type: string
enum:
- global
- stream
- legacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
"$schema": http://json-schema.org/draft-07/schema#
"$id": https://github.com/airbytehq/airbyte/blob/master/airbyte-config/models/src/main/resources/types/StateWrapper.yaml
title: StateWrapper
description: Wrapper around the different type of States
type: object
additionalProperties: false
required:
- stateType
properties:
stateType:
description: The type of the state being wrapped
"$ref": StateType.yaml
legacyState:
description: Legacy State for states that haven't been migrated yet
type: object
existingJavaType: com.fasterxml.jackson.databind.JsonNode
global:
description: Representation of the shared
type: object
existingJavaType: io.airbyte.protocol.models.AirbyteStateMessage
stateMessages:
type: array
items:
type: object
existingJavaType: io.airbyte.protocol.models.AirbyteStateMessage

0 comments on commit 091c5bc

Please sign in to comment.