Skip to content
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

Enum values not generated #7

Closed
oskrabanek opened this issue Feb 23, 2024 · 3 comments
Closed

Enum values not generated #7

oskrabanek opened this issue Feb 23, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@oskrabanek
Copy link

After migration from Swashbuckle 5.4.1 to DotSwashbuckle 3.0.6 the enums list of available values is no longer generated in OpenAPI v2.

        "parameters": [
          {
            "in": "query",
            "name": "period",
            "description": "period",
            "type": "string",
            "default": "Current",
>>>
            "enum": [
              "Current",
              "Previous"
            ]
<<<
          }

image

@Havunen Havunen added the bug Something isn't working label Feb 24, 2024
@Havunen
Copy link
Owner

Havunen commented Feb 24, 2024

This seems to be a bug indeed, looks like enums are not serialized as enum ref in parameters. I will check

@Havunen
Copy link
Owner

Havunen commented Feb 24, 2024

fixed in 3.0.7

@oskrabanek
Copy link
Author

Works like a charm. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants