Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get smithy-format to keep resource identifiers and properties on separate lines #2104

Open
mcmasn-amzn opened this issue Jan 18, 2024 · 0 comments
Labels
feature-request A feature should be added or improved.

Comments

@mcmasn-amzn
Copy link
Contributor

I have a smithy file like this:

resource PackageVersionTag {
    identifiers: {
        name: PackageName
        tag: Tag
    }
    properties: {
        version: Version
    }
    put: PutPackageVersionTag
    read: GetPackageVersionTag
}

When I run smithy format, it condenses identifiers and properties like this:

resource PackageVersionTag {
    identifiers: {name: PackageName, tag: Tag}
    properties: {version: Version}
    put: PutPackageVersionTag
    read: GetPackageVersionTag
}

Is there a way to configure the formatter to avoid compressing these sections? I find it more readable to have the original code with line-breaks in it

@mtdowling mtdowling added the feature-request A feature should be added or improved. label Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved.
Projects
None yet
Development

No branches or pull requests

2 participants