Skip to content

Commit

Permalink
fix syntax
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Le Dem <julien@apache.org>
  • Loading branch information
julienledem committed Dec 17, 2020
1 parent a17ec19 commit ead3e02
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions spec/OpenLineage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ components:
# Base Facet

BaseFacet:
description: all fields of the base facet are prefixed with _ to avoid name conflicts in facets
type: object
properties:
_producer:
Expand All @@ -156,33 +157,35 @@ components:

# Custom facets
CustomFacet:
description: a Custom Facet is defined is a separate spec. field must not start with _
allOf:
- ref: '#/components/schemas/BaseFacet'
- $ref: '#/components/schemas/BaseFacet'
- type: object
properties:
additionalProperties: true

## Run Facets
NominalTimeRunFacet:
allOf:
- ref: '#/components/schemas/BaseFacet'
- $ref: '#/components/schemas/BaseFacet'
- type: object
properties:
nominalStartTime:
description: An [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp representing the nominal start time of the run. AKA the schedule time
description: An [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp representing the nominal start time (included) of the run. AKA the schedule time
type: string
format: date-time
example: "2020-12-17T03:00:00.000Z"
nominalEndTime:
description: An [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp representing the nominal end time of the run.
description: An [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp representing the nominal end time (excluded) of the run. (Should be the nominal start time of the next run)
type: string
format: date-time
example: "2020-12-17T04:00:00.000Z"
required:
- nominalStartTime

ParentRunFacet:
description: the id of the parent run and job, iff this run was spawn from an other run (for example, the Dag run scheduling its tasks)
allOf:
- ref: '#/components/schemas/BaseFacet'
- $ref: '#/components/schemas/BaseFacet'
- type: object
properties:
run:
Expand Down Expand Up @@ -213,7 +216,7 @@ components:
## Job Facets
DocumentationJobFacet:
allOf:
- ref: '#/components/schemas/BaseFacet'
- $ref: '#/components/schemas/BaseFacet'
- type: object
properties:
description:
Expand All @@ -224,7 +227,7 @@ components:

SourceCodeLocationJobFacet:
allOf:
- ref: '#/components/schemas/BaseFacet'
- $ref: '#/components/schemas/BaseFacet'
- type: object
properties:
type:
Expand All @@ -236,7 +239,7 @@ components:

SQLJobFacet:
allOf:
- ref: '#/components/schemas/BaseFacet'
- $ref: '#/components/schemas/BaseFacet'
- type: object
properties:
query:
Expand All @@ -248,7 +251,7 @@ components:
## Dataset facets
DocumentationDatasetFacet:
allOf:
- ref: '#/components/schemas/BaseFacet'
- $ref: '#/components/schemas/BaseFacet'
- type: object
properties:
description:
Expand All @@ -260,7 +263,7 @@ components:

SchemaDatasetFacet:
allOf:
- ref: '#/components/schemas/BaseFacet'
- $ref: '#/components/schemas/BaseFacet'
- type: object
properties:
fields:
Expand All @@ -286,11 +289,11 @@ components:

DatasourceDatasetFacet:
allOf:
- ref: '#/components/schemas/BaseFacet'
- $ref: '#/components/schemas/BaseFacet'
- type: object
properties:
name:
type: string
uri:
type: string
format: uri
format: uri

0 comments on commit ead3e02

Please sign in to comment.