Repository navigation
Update to .NET 11 - #321
Merged
Merged
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
Camel-casing query parameters resets AllowEmptyValue, while schema changes drop OpenAPI 3.0 time examples and existing singular numeric examples, altering documented API metadata.
3 open issues
What changed in this PR
Updates TinyHelpers libraries, samples, and publishing workflows for .NET 11 while retaining existing library targets.
Changes:
- Add .NET 11 targets and update JSON, ASP.NET Core OpenAPI, and Swashbuckle dependencies.
- Adapt OpenAPI integrations and refresh the ASP.NET Core samples.
- Update publishing SDKs, remove the SDK pin, and reorganize the solution.
| File | Description |
|---|---|
TinyHelpers.slnx |
Reorganizes solution folders and replaces the older ASP.NET Core sample entry. |
src/TinyHelpers/TinyHelpers.csproj |
Adds .NET 11 and updates System.Text.Json. |
src/TinyHelpers.AspNetCore/TinyHelpers.AspNetCore.csproj |
Adds .NET 11 and updates target-specific OpenAPI dependencies. |
src/TinyHelpers.AspNetCore/OpenApi/Transformers/WriteNumberAsStringSchemaTransformer.cs |
Changes copied schema metadata from Example to Examples. |
src/TinyHelpers.AspNetCore/OpenApi/Transformers/TimeExampleSchemaTransformer.cs |
Uses the schema examples collection for time values. |
src/TinyHelpers.AspNetCore/OpenApi/Transformers/DefaultResponseOperationTransformer.cs |
Adds a .NET 11 default-response implementation. |
src/TinyHelpers.AspNetCore/OpenApi/Transformers/CamelCaseQueryParametersOperationTransformer.cs |
Removes the AllowEmptyValue assignment when cloning parameters. |
src/TinyHelpers.AspNetCore.Swashbuckle/TinyHelpers.AspNetCore.Swashbuckle.csproj |
Adds .NET 11 and target-specific Swashbuckle versions. |
src/TinyHelpers.AspNetCore.Swashbuckle/SwaggerExtensions.cs |
Uses the examples collection for TimeSpan mappings. |
src/TinyHelpers.AspNetCore.Swashbuckle/Filters/DefaultResponseOperationFilter.cs |
Adds .NET 11 response-model support. |
samples/TinyHelpers.Sample/TinyHelpers.Sample.csproj |
Retargets the general sample to .NET 11. |
samples/TinyHelpers.AspNetCore.Swashbuckle.Sample/TinyHelpers.AspNetCore.Swashbuckle.Sample.csproj |
Updates the sample to .NET 11 and Swashbuckle 11. |
samples/TinyHelpers.AspNetCore.Swashbuckle.Sample/Properties/launchSettings.json |
Adds launch profiles opening Swagger UI. |
samples/TinyHelpers.AspNetCore.Swashbuckle.Sample/Program.cs |
Demonstrates shared parameters, problem details, and OpenAPI 3.1 output. |
samples/TinyHelpers.AspNetCore.Swashbuckle.Sample/appsettings.json |
Adds baseline logging and host settings. |
samples/TinyHelpers.AspNetCore.Swashbuckle.Sample/appsettings.Development.json |
Adds development logging settings. |
samples/TinyHelpers.AspNetCore.Sample/TinyHelpers.AspNetCore.Sample.csproj |
Updates the OpenAPI sample and dependencies to .NET 11. |
global.json |
Removes SDK selection while retaining the test runner setting. |
.github/workflows/publish.yml |
Uses the .NET 11 SDK for core package publishing. |
.github/workflows/publish_efcore.yml |
Uses the .NET 11 SDK for EF Core package publishing. |
.github/workflows/publish_dapper.yml |
Uses the .NET 11 SDK for Dapper package publishing. |
.github/workflows/publish_aspnetcore.yml |
Uses the .NET 11 SDK for ASP.NET Core package publishing. |
.github/workflows/publish_aspnetcore_swashbuckle.yml |
Uses the .NET 11 SDK for Swashbuckle package publishing. |
.github/workflows/linter.yml |
Updates the checkout action to v6. |
Review effort: Balanced
| { | ||
| Type = JsonSchemaType.String, | ||
| Example = example is not null ? JsonValue.Create(example) : null | ||
| Examples = example is not null ? [JsonValue.Create(example)] : null |
| @@ -73,7 +73,6 @@ public Task TransformAsync(OpenApiOperation operation, OpenApiOperationTransform | |||
| Description = parameter.Description, | |||
| Required = parameter.Required, | |||
| Deprecated = parameter.Deprecated, | |||
| AdditionalProperties = originalSchema.AdditionalProperties, | ||
| Discriminator = originalSchema.Discriminator, | ||
| Example = originalSchema.Example, | ||
| Examples = originalSchema.Examples, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

No description provided.