Skip to content

OpenAPI incorrectly misses some metadata in swagger spec #3376

Open
@JustArchi

Description

Checklist

ASF version

Latest pre-release

ASF variant

generic (with latest .NET runtime)

Bug description

Since changing swagger generator from Swashbuckle to OpenAPI, we're observing an issue with some references in the swagger generator, in particular, dupes that are sometimes incorrect in their definition.

Notable example:

Image

Expected behavior

Actual behavior

Steps to reproduce

No response

Possible reason/solution

This issue remains open while we're waiting for dotnet/aspnetcore#58968 to ship in .NET 9.0.2+, and confirmation from our side that the issue does not happen anymore.

Can you help us with this bug report?

Yes, I can code the solution myself and send a pull request

Full log.txt recorded during reproducing the problem

-

Global ASF.json config file

BotName.json config of all affected bot instances

Additional info

We'll consider this temporary degradation, since the cost of reverting the OpenAPI generator is much higher than temporary inconvenience from missing x-definition, among other properties.

Metadata

Assignees

No one assigned

    Labels

    ☝️ ExternalIssues marked with this label have external scope and typically depend on third-party projects.⛔ On holdIssues marked with this label are blocked from being worked on, very often due to third-parties.✔️ ConfirmedIssues marked with this label were acknowledged and confirmed by the developers.🐛 BugIssues marked with this label indicate unintended program behaviour that needs correction.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions