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

Existing output file should be deleted/overwritten #2886

Merged
merged 3 commits into from
May 15, 2024

Commits on May 15, 2024

  1. Existing output file should be deleted/overwritten

    The CLI currently uses `File.OpenWrite(path)` (added in domaindrivendev#2677) to create an output stream for the resulting swagger document. This does not delete the existing contents, but instead starts writing from position 0, causing issues if the output is smaller than the previous file content.
    
    I changed it to `File.Create(path)` to make sure any previous content is discarded.
    patrikwlund committed May 15, 2024
    Configuration menu
    Copy the full SHA
    45eeb1c View commit details
    Browse the repository at this point in the history
  2. Remove test

    patrikwlund committed May 15, 2024
    Configuration menu
    Copy the full SHA
    4d4418b View commit details
    Browse the repository at this point in the history
  3. Re-add disabled test

    patrikwlund committed May 15, 2024
    Configuration menu
    Copy the full SHA
    fa12574 View commit details
    Browse the repository at this point in the history