Replies: 1 comment 3 replies
-
| I forget exactly where in the stream, but there's a discussion about how this sort of thing will be enabled as part of the .NET 10 release: 📺 ASP.NET Community Standup - Exciting (and breaking) changes for OpenAPI in .NET 10 | 
Beta Was this translation helpful? Give feedback.
                  
                    3 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In
Microsoft.AspNetCore.OpenApithere is currently no way to reuse all built logic around schema transformers, updating/patching the schema based onSystem.Text.Json.Schemasbecause everything is internal. I understand why it's all hidden because that would increase the Api surface, but it makes it really hard to push your own schemas based onTypeas you need to "copy" or "build" all that logic around mapping the JsonNode schema to the Microsoft.OpenApi JsonSchema yourself and cannot hook into already registered schema transformers. It would be awesome if we can add Json Schemas based on Type which would (re-)use the current logic provided inMicrosoft.AspNetCore.OpenApiand for those schemas it would also apply all schema transformers.This would greatly enhance
Microsoft.AspNetCore.OpenApifor the following scenario's:It would be great if the OpenApiOptions or the OpenApiSchemaService exposed a GetOrCreateSchema(Type) method.
Beta Was this translation helpful? Give feedback.
All reactions