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.
- Added tests for resolving list-based schema references, self-referential schemas, and shared type references.
- Expanded sample endpoints with new schema definitions to exercise schema mapping and demonstrate potential pitfalls.
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
- [nitpick] The property 'value' does not follow standard PascalCase naming conventions; consider renaming it to 'Value'.
public int value { get; set; }