Skip to content

ossie-dbt osi-to-msi crashes: PydanticSemanticManifest has no model_dump_json #296

Description

@MikeNitsenko

ossie-dbt osi-to-msi fails on every input, including the repo's own example:

$ ossie-dbt osi-to-msi -i examples/tpcds_semantic_model.yaml -o out.json
  File "converters/dbt/src/ossie_dbt/cli.py", line 78, in _cmd_osi_to_msi
    output_path.write_text(result.output.model_dump_json(by_alias=True, exclude_none=True, indent=2))
AttributeError: 'PydanticSemanticManifest' object has no attribute 'model_dump_json'

PydanticSemanticManifest comes from metricflow_semantic_interfaces and subclasses pydantic.v1.BaseModel, so the serializer is .json(), not .model_dump_json(). Calling .json(by_alias=True, exclude_none=True, indent=2) on the same object produces valid output.

Reproduced on main at 88e0011. The conversion itself works — only the CLI write fails. No test covers the CLI, so CI passes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions