Example:
file1.proto file2.proto
), or as a glob pattern. The check
command must be run within the repository’s directory, as it uses the repo’s git information to construct the unique resource name for the data assets it discovers in order to find any contracts associated with the file(s).
Example:
serviceone
for contract violations.Example: Checking Python Emitter Data Assets
--source-type
: Specify source. Python in this case--project-root
: Specifying the project’s entry point for proper bundling--emitter-file-path
: Identify the emitter function location--emitter-function
: Identify the emitter function--emitter-payload-parameter
: Identify payload parameter within the emitter function--event-name-key
: Define the property of the event to distinguish event typesExample: Checking PySpark Projects
--source-type
- Set to pyspark for PySpark projects--project-root
- The directory containing the PySpark job to be analyzed--spark-job-entrypoint
- The command to execute the Spark job, including any argument--connection-string
- Connection string to the Hive metastore--csv-schema-file
- Path to csv file containing the schema of upstream tables, formatted with columns table_name
, column_name
, and column_type
Example: Checking Typescript Projects (Supported Library)
Example: Checking Typescript Projects (UDF: Event Name Parameter)
eventName
) is used to set the event name when publishing.Example Event Publishing UDFExample: Checking Typescript Projects (UDF: Event Name Key)
--source-type
- Set to typescript
to check events in Typescript--project-root
- The directory containing the Typescript project to be analyzed--library
- The natively supported library used to publish data, usually events--emitter-file-path src/lib/events.ts
- The path to the file containing the UDF--emitter-function trackEvent
- The name of the UDF--emitter-payload-parameter eventProperties
- The name of the function parameter representing the event payload--emitter-name-parameter eventName
- [Optional] The name of the function parameter representing the event name. Use either this option, or --event-name-key __event_name
. See above examples.--event-name-key __event_name
- [Optional] The name of the event property representing the event name. Use either this option, or --event-name-key __event_name
. See above examples.