A regular C# builder pattern would help a lot in many scenarios.
Building an object now is very complex...
Builder pattern is also the "de facto" in Aspnetcore.. so would make sense to expose a similar api
varopenApiDocumentBuilder=newOpenApiDocumentBuilder().WithServers(...).WithOperation(...).WithOperation(...).WithSchema(...);//... etcvaropenApiDocument=openApiDocumentBuilder.Build();
A regular C# builder pattern would help a lot in many scenarios.
Building an object now is very complex...
Builder pattern is also the "de facto" in Aspnetcore.. so would make sense to expose a similar api