Skip to content

Update to .NET 11 - #321

Merged
marcominerva merged 1 commit into
masterfrom
develop
Nov 11, 2026
Merged

marcominerva merged 1 commit into
masterfrom
develop

Conversation

@marcominerva

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI balanced review requested due to automatic review settings November 11, 2026 09:37
@marcominerva
marcominerva merged commit 23586dd into master Nov 11, 2026
8 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants