Skip to main content

convert_to_odcs

Function convert_to_odcs 

Source
pub fn convert_to_odcs(
    input: &str,
    format: Option<&str>,
) -> Result<String, ConversionError>
Expand description

Convert any import format to ODCS v3.1.0 YAML format.

§Arguments

  • input - Format-specific content as a string
  • format - Optional format identifier. If None, attempts auto-detection. Supported formats: “sql”, “json_schema”, “avro”, “protobuf”, “odcl”, “odcs”, “cads”, “odps”, “domain”

§Returns

ODCS v3.1.0 YAML string, or ConversionError