We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a7a79fd + dfef5ae commit 18fc1acCopy full SHA for 18fc1ac
1 file changed
src/ApiCodeGenerator.Core/ApiDocumentProvider.cs
@@ -106,6 +106,7 @@ public ApiDocumentProvider(IFileProvider fileProvider, HttpClient httpClient)
106
}
107
108
109
+ data.Schema = data.Schema.Replace("#/definitions/", $"#/components/schemas/{data.Name}/definitions/");
110
var content = $"{{\"openapi\":\"3.0.0\",\"components\":{{\"schemas\":{{\"{data.Name}\":{data.Schema}}}}}}}";
111
return FromContent(content, null);
112
0 commit comments