-
Notifications
You must be signed in to change notification settings - Fork 241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate OpenAPISchema objects from C# POCOs #836
Comments
@JamesNK and I talked schema generation today and he shared some helpful insights on this domain. Notes from the discussion below:
We also discussed some features that might be helpful for the work that James is doing around gRPC + REST APIs + OpenAPI, particularly being able to provide global overrides for how different JSON schema types (primitives, objects, arrays, etc.) should have their serializations configured. Let me know if I missed anything key, @JamesNK... |
Another key thing here is schemas aren't isolated. Schemas are reused and they reference each other. For this to work I imagine:
|
Our plans to support OpenAPI 3.1 currently involve changing our OpenAPISchema object to use a third-party JSONSchema library. We should not do this work until we have added OpenAPI 3.1 support or we will have to do the work twice. |
Hello, I am at the stage of selecting the technology to work with OpenAPI standard required for my task. I need functionality to generate schemas. If possible, please advise how long this issue will be on hold? |
I think we can close this issue out given support. for generating schemas from type definitions has been added in System.Text.Json. @magarich228 There is a new API in .NET 9 to support this ( |
Can we create a mechanism to generate Schemas from C# classes?
dotnet/aspnetcore#41246
The text was updated successfully, but these errors were encountered: