Skip to main content

datacontract import pydantic-model

Import a data contract from Pydantic models.

datacontract import pydantic-model [OPTIONS]
OptionDefaultDescription
--sourcePath to the Python file defining the Pydantic models.
--outputFile path where the Data Contract will be saved. If not provided, it will be printed to stdout.
--json-schemaThe location (url or path) of the ODCS JSON Schema
--ownerThe owner or team responsible for managing the data contract.
--idThe identifier for the data contract.
--debug / --no-debugEnable debug logging
datacontract import pydantic-model --source models.py --output datacontract.yaml

Guide: Import: Pydantic Model.