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

Incorrect Parameter Generation for anyOf and oneOf in Path Parameters #2055

Open
BeatrizRodrigues opened this issue Mar 20, 2025 · 0 comments

Comments

@BeatrizRodrigues
Copy link

Expected Behavior

When using anyOf or oneOf in a path parameter, the generated code should correctly represent the defined schema, allowing requests with valid values to be processed successfully.

Actual Behaviour

When making a request to an endpoint that uses anyOf or oneOf in a path parameter, the request fails with a 404 Bad Request.

Steps To Reproduce

  1. Download the sample project.
  2. Compile the application.
  3. Start the application and make a request to the /search endpoint:
    curl --location 'http://localhost:8080/search/admin'
    

Environment Information

  • Windowns 11
  • Java 21

Example Application

https://github.com/BeatrizRodrigues/micronaut-openapi-example

Version

4.7.14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant