Add more schema tests by captainsafia · Pull Request #60822 · dotnet/aspnetcore (original) (raw)

PR Overview

This PR adds additional tests and sample endpoints to verify correct OpenAPI schema transformation and reference resolution, as well as forward porting tests from an earlier ASP.NET Core pull request.

Reviewed Changes

File Description
src/OpenApi/test/Microsoft.AspNetCore.OpenApi.Tests/Transformers/Implementations/OpenApiSchemaReferenceTransformerTests.cs Adds tests to validate correct OpenAPI reference handling and schema structure.
src/OpenApi/sample/Endpoints/MapSchemasEndoints.cs Introduces additional endpoints and new schema classes to demonstrate and test schema mapping.

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

Comments suppressed due to low confidence (1)

src/OpenApi/sample/Endpoints/MapSchemasEndoints.cs:72

public int value { get; set; }