datacontract / datacontract-cli

CLI to manage your datacontract.yaml files
https://cli.datacontract.com
Other
484 stars 94 forks source link

HTML export issue #511

Closed janhelmu closed 6 days ago

janhelmu commented 6 days ago

Hello Team,

first of all great thanks for these packages. It helps a lot to cover topics I have to fulfill. Short question to the html export function. I tried different python version. For all python versions I can install your package (python -m pip install datacontract-cli[all]). When I try to create a html:

everything works fine but when I try to open it I will see only:

Screenshot 2024-11-19 at 11 35 40

When I look into the source code I will see:

Screenshot 2024-11-19 at 11 37 00

Do you know why?

Thanks for your help.

best regards

Jan

jochenchrist commented 6 days ago

Can you try with the --output option:

datacontract export --format html https://datacontract.com/examples/orders-latest/datacontract.yaml --output ${CI_PROJECT_DIR}/public/html_datacontract.html
janhelmu commented 6 days ago

Hello Jochen,

it works now. I mean with the --output statement. Thank you so much.

I wish you a great day.

Jan