WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Suggestion: Prettier like parameters to allow for easy script usage #16

@wedi

Description

@wedi

Hi,
first of all, thanks for your tool that helps keeping API definitions and commits clean. ❤️

prettier has a CLI that makes it really easy to use it in scripts, e.g. in CI:

  • --write replaces the input files
  • it accepts (multiple) paths/glob patterns
  • --check makes it fail if something changed

That might be a nice addition to openapi-format, too, although you can work arround the first two with find . -name '*.yaml' -exec yarn run openapi-format {} -o {} \;.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions