Closed shawnwildermuth closed 3 hours ago
If I understand correctly, this issue is that all the schemas are inline are there are no components
?
If so, this was implemented by #56175 and initial support will be in preview 6, with further changes in preview 7.
@shawnwildermuth Thanks for reporting this issue!
As @martincostello mentioned, you can try this out in the latest preivew.7 builds of the package (9.0.0-preview.7.24353.6). Can you try updating your package reference and sharing any additional feedback you have there?
Edit: BTW, your repro seems to indicate that you're actually using Swashbuckle.AspNetCore
to generate OpenAPI documents. Is the repro up to date?
@shawnwildermuth Thanks for reporting this issue!
As @martincostello mentioned, you can try this out in the latest preivew.7 builds of the package (9.0.0-preview.7.24353.6). Can you try updating your package reference and sharing any additional feedback you have there?
Not sure how to get that version, is there a nightly nuget (haven't used that before).
Edit: BTW, your repro seems to indicate that you're actually using
Swashbuckle.AspNetCore
to generate OpenAPI documents. Is the repro up to date?
Make sure you're in the net9
branch. The net9 branch has swagger disabled
@shawnwildermuth Thanks for reporting this issue!
As @martincostello mentioned, you can try this out in the latest preivew.7 builds of the package (9.0.0-preview.7.24353.6). Can you try updating your package reference and sharing any additional feedback you have there?
Edit: BTW, your repro seems to indicate that you're actually using
Swashbuckle.AspNetCore
to generate OpenAPI documents. Is the repro up to date?
Also, I entered the wrong repo branch (I updated it above), but you can replicate it here:
https://github.com/shawnwildermuth/BechdelDataServer/tree/issue/missingschemas
Not sure how to get that version, is there a nightly nuget (haven't used that before).
Hi @shawnwildermuth. We have added the "Needs: Author Feedback" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.
This looks fixed in Preview 6
Is there an existing issue for this?
Describe the bug
I create an API that has concrete types but no OpenAPI schemas are exposed. If I use Swagger generation it works fine. So when I map an API:
There is a repo branch that replicates it: https://github.com/shawnwildermuth/BechdelDataServer/tree/issue/missingschemas
Not sure if the
.Produces<FilmResult>()
is read my OpenApi, if not, the docs aren't clear.The OpenAPI doc looksl ike:
Expected Behavior
Should include schemas.
Steps To Reproduce
https://github.com/shawnwildermuth/BechdelDataServer/tree/issue/missingschemas
Exceptions (if any)
None.
.NET Version
9.0.100-preview.5.24307.3
Anything else?
.NET SDK: Version: 9.0.100-preview.5.24307.3 Commit: 35b2c21ea6 Workload version: 9.0.100-manifests.6407b7e4 MSBuild version: 17.11.0-preview-24279-02+b963c24ef
Runtime Environment: OS Name: Windows OS Version: 10.0.22631 OS Platform: Windows RID: win-x64 Base Path: C:\Program Files\dotnet\sdk\9.0.100-preview.5.24307.3\
.NET workloads installed: Configured to use loose manifests when installing new manifests. [aspire] Installation Source: VS 17.10.35013.160, VS 17.11.35017.193 Manifest Version: 9.0.0-preview.2.24163.9/9.0.100-preview.1 Manifest Path: C:\Program Files\dotnet\sdk-manifests\9.0.100-preview.1\microsoft.net.sdk.aspire\9.0.0-preview.2.24163.9\WorkloadManifest.json Install Type: Msi
[ios] Installation Source: VS 17.10.35013.160 Manifest Version: 17.2.9088-net9-p1/9.0.100-preview.1 Manifest Path: C:\Program Files\dotnet\sdk-manifests\9.0.100-preview.1\microsoft.net.sdk.ios\17.2.9088-net9-p1\WorkloadManifest.json Install Type: Msi
[maccatalyst] Installation Source: VS 17.10.35013.160 Manifest Version: 17.2.9088-net9-p1/9.0.100-preview.1 Manifest Path: C:\Program Files\dotnet\sdk-manifests\9.0.100-preview.1\microsoft.net.sdk.maccatalyst\17.2.9088-net9-p1\WorkloadManifest.json Install Type: Msi
[android] Installation Source: VS 17.10.35013.160 Manifest Version: 34.99.0-preview.1.151/9.0.100-preview.1 Manifest Path: C:\Program Files\dotnet\sdk-manifests\9.0.100-preview.1\microsoft.net.sdk.android\34.99.0-preview.1.151\WorkloadManifest.json Install Type: Msi
[maui-windows] Installation Source: VS 17.10.35013.160 Manifest Version: 9.0.0-preview.1.9973/9.0.100-preview.1 Manifest Path: C:\Program Files\dotnet\sdk-manifests\9.0.100-preview.1\microsoft.net.sdk.maui\9.0.0-preview.1.9973\WorkloadManifest.json Install Type: Msi
Host: Version: 9.0.0-preview.5.24306.7 Architecture: x64 Commit: a5cc707d97
.NET SDKs installed: 5.0.408 [C:\Program Files\dotnet\sdk] 6.0.423 [C:\Program Files\dotnet\sdk] 7.0.410 [C:\Program Files\dotnet\sdk] 8.0.206 [C:\Program Files\dotnet\sdk] 8.0.300 [C:\Program Files\dotnet\sdk] 8.0.301 [C:\Program Files\dotnet\sdk] 8.0.302 [C:\Program Files\dotnet\sdk] 9.0.100-preview.5.24307.3 [C:\Program Files\dotnet\sdk]
.NET runtimes installed: Microsoft.AspNetCore.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.31 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 7.0.20 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 8.0.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 8.0.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 9.0.0-preview.5.24306.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.31 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 7.0.20 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 8.0.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 8.0.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 9.0.0-preview.5.24306.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.WindowsDesktop.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 6.0.31 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 7.0.20 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 8.0.5 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 8.0.6 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 9.0.0-preview.5.24306.8 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Other architectures found: x86 [C:\Program Files (x86)\dotnet] registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]
Environment variables: Not set
global.json file: Not found
Learn more: https://aka.ms/dotnet/info
Download .NET: https://aka.ms/dotnet/download