Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: domaindrivendev/Swashbuckle.AspNetCore Loading
base: v6.6.1
Choose a base ref
...
head repository: domaindrivendev/Swashbuckle.AspNetCore Loading
compare: v6.6.2
Choose a head ref
  • 20 commits
  • 64 files changed
  • 11 contributors

Commits on May 14, 2024

  1. Bump version (#2876)

    * Bump version
    
    Bump version to 6.6.2 for the next release.
    
    * Fix link
    
    Point to the correct tag.
    
    ---------
    
    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    Co-authored-by: Martin Costello <martin@martincostello.com>
    3 people committed May 14, 2024
    Configuration menu
    Copy the full SHA
    8908e1e View commit details
    Browse the repository at this point in the history
  2. Fix to make required and nullable properties nullable in schema (#2879)

    Fix to make required and nullable properties nullable in schema.
    - Added test for type with required nullable properties.
    keahpeters committed May 14, 2024
    Configuration menu
    Copy the full SHA
    a29ba36 View commit details
    Browse the repository at this point in the history

Commits on May 15, 2024

  1. Update Swagger UI section (#2883)

    Update a few outdated links to the Swagger UI repository and add missing extension methods on SwaggerUIOptions.
    cremor committed May 15, 2024
    Configuration menu
    Copy the full SHA
    f16fa78 View commit details
    Browse the repository at this point in the history
  2. Bump martincostello/update-dotnet-sdk from 3.2.1 to 3.2.2 (#2888)

    Bumps [martincostello/update-dotnet-sdk](https://github.com/martincostello/update-dotnet-sdk) from 3.2.1 to 3.2.2.
    - [Release notes](https://github.com/martincostello/update-dotnet-sdk/releases)
    - [Commits](martincostello/update-dotnet-sdk@caa37bc...68300a9)
    
    ---
    updated-dependencies:
    - dependency-name: martincostello/update-dotnet-sdk
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] committed May 15, 2024
    Configuration menu
    Copy the full SHA
    7a0c4e1 View commit details
    Browse the repository at this point in the history
  3. Bump codecov/codecov-action from 4.3.1 to 4.4.0 (#2889)

    Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 4.3.1 to 4.4.0.
    - [Release notes](https://github.com/codecov/codecov-action/releases)
    - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
    - [Commits](codecov/codecov-action@5ecb98a...6d79887)
    
    ---
    updated-dependencies:
    - dependency-name: codecov/codecov-action
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] committed May 15, 2024
    Configuration menu
    Copy the full SHA
    4220ffb View commit details
    Browse the repository at this point in the history
  4. Add support for the [Length]attribute. (#2882)

    Implement support for the `[Length]` attribute.
    satma0745 committed May 15, 2024
    Configuration menu
    Copy the full SHA
    674eac8 View commit details
    Browse the repository at this point in the history
  5. Update .NET SDK (#2892)

    Update .NET SDK to version 8.0.300.
    
    ---
    updated-dependencies:
    - dependency-name: Microsoft.NET.Sdk
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    github-actions[bot] and github-actions[bot] committed May 15, 2024
    Configuration menu
    Copy the full SHA
    7deb5f6 View commit details
    Browse the repository at this point in the history
  6. Existing output file should be deleted/overwritten (#2886)

    The CLI currently uses `File.OpenWrite(path)` (added in #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.
    
    Changed to `File.Create(path)` to make sure any previous content is discarded.
    patrikwlund committed May 15, 2024
    Configuration menu
    Copy the full SHA
    d793865 View commit details
    Browse the repository at this point in the history

Commits on May 16, 2024

  1. Configuration menu
    Copy the full SHA
    e1b56e1 View commit details
    Browse the repository at this point in the history
  2. Avoid competing swagger generation during test build (#2897)

    The previous implementation caused the concurrent builds for various frameworks to compete in writing to the output `swagger.json` file, causing exceptions during builds (since it happened in csproj).
    
    In my local development I often failed to rebuild the full solution because some projects failed to build for this reason. It has also happened in CI (#2886).
    
    Note that the NSwag source code generator in `NswagClientExample` still outputs everything in one spot for all frameworks, but I haven't noticed failures from that. Maybe it's just less likely to write concurrently. I left it as is.
    
    Un-skip the `Overwrites_Existing_File` test.
    patrikwlund committed May 16, 2024
    Configuration menu
    Copy the full SHA
    77cde47 View commit details
    Browse the repository at this point in the history
  3. Replace br tags in XML comments with new lines (#2899)

    Replace any `<br>` tags with a new line instead.
    mburumaxwell committed May 16, 2024
    Configuration menu
    Copy the full SHA
    828b7df View commit details
    Browse the repository at this point in the history
  4. Fix schema generation for C# 9 positional record with no example (#2901)

    * Add schema filter test for when example tag is not present
    
    * Add datetime to schema filter example tag positive test
    
    * Fix missing example property on record xmldoc param tag causing unexpected empty example string in generated schema
    stb-co committed May 16, 2024
    Configuration menu
    Copy the full SHA
    76ec39d View commit details
    Browse the repository at this point in the history
  5. Bump swagger-ui-dist in /src/Swashbuckle.AspNetCore.SwaggerUI (#2903)

    Bumps [swagger-ui-dist](https://github.com/swagger-api/swagger-ui) from 5.17.9 to 5.17.10.
    - [Release notes](https://github.com/swagger-api/swagger-ui/releases)
    - [Changelog](https://github.com/swagger-api/swagger-ui/blob/master/.releaserc)
    - [Commits](swagger-api/swagger-ui@v5.17.9...v5.17.10)
    
    ---
    updated-dependencies:
    - dependency-name: swagger-ui-dist
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] committed May 16, 2024
    Configuration menu
    Copy the full SHA
    ecce973 View commit details
    Browse the repository at this point in the history

Commits on May 18, 2024

  1. Only restore packages when needed

    Speed up local development iterations by only running `npm install` when the `node_modules` directory does not already exist.
    martincostello committed May 18, 2024
    Configuration menu
    Copy the full SHA
    a0f4bb4 View commit details
    Browse the repository at this point in the history
  2. Fix IDE suggestions

    Apply code refactoring suggestions from Visual Studio.
    martincostello committed May 18, 2024
    Configuration menu
    Copy the full SHA
    91c936b View commit details
    Browse the repository at this point in the history
  3. Fix serialization of AdditionalItems

    Extend custom `JsonSerializerContext` to cover objects that might be added to the additional JSON property.
    Resolves #2884,
    martincostello committed May 18, 2024
    Configuration menu
    Copy the full SHA
    ac588fe View commit details
    Browse the repository at this point in the history
  4. Disable parallel build (#2894)

    Disable parallel build to avoid file-write conflicts.
    Relates to #2893.
    martincostello committed May 18, 2024
    Configuration menu
    Copy the full SHA
    26c78cb View commit details
    Browse the repository at this point in the history
  5. Do not run IHostedService implementations (#2880)

    - Remove `IHostedService` implementations so the CLI doesn't run hosted services (and then hang/fail).
    - Refactor CLI tests to reduce duplication.
    - Use newer C# syntax as suggested by Visual Studio.
    
    Co-authored-by: Sjoerd van der Meer <2460430+desjoerd@users.noreply.github.com>
    martincostello and desjoerd committed May 18, 2024
    Configuration menu
    Copy the full SHA
    432c417 View commit details
    Browse the repository at this point in the history

Commits on May 21, 2024

  1. Fix interceptor JSON casing

    Fix property casing of Swagger UI interceptor function properties.
    Resolves #2906.
    martincostello committed May 21, 2024
    Configuration menu
    Copy the full SHA
    d5cd28e View commit details
    Browse the repository at this point in the history
  2. Fix exceptions generating default values (#2895)

    - Fix SwaggerGeneratorException if the type of a `[DefaultValue]` does not match the type of the property when using System.Text.Json for serialization to resolve #2885.
    - Fix schema generation of default values for nullable enums with System.Text.Json to resolve #2904.
    - Resolve some IDE refactoring suggestions.
    - Render the response if an integration test fails.
    martincostello committed May 21, 2024
    Configuration menu
    Copy the full SHA
    fe87e6d View commit details
    Browse the repository at this point in the history
Loading