Skip to content

hidi transform creates an extensionless output file #877

Closed

Description

Steps to reproduce

hidi transform --inlineLocal -d https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/resources.json

Expected result

Have a default file with the extension associated with the format it contains (output.json or output.yaml)

Actual result

File called output without any extension.

image

Activity

  1. CarolKigoonya commented on May 31, 2022

    @CarolKigoonya
    Contributor

    We will set the extension based on the output format (this is determined by the input)

  2. MaggieKimani1 commented on Jul 4, 2022

    @MaggieKimani1
    Contributor

    As Carol Kigoonya (@CarolKigoonya) has mentioned, we can infer the file format from the input file extension and use it as a default for when an output path is not provided.
    Currently, we default to ./output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

type:bugA broken experience

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions