Skip to content

Conversation

@developerfred
Copy link

- Fixes zio#3868: OpenAPI generator now includes discriminator property in each case schema
- When using @discriminatorName and @casename annotations on sealed traits,
  the generated OpenAPI spec now properly includes the discriminator property
  in each individual case schema, not just at the union level
- This ensures proper oneOf with discriminator structure as expected by OpenAPI spec
@netlify
Copy link

netlify bot commented Dec 23, 2025

Deploy Preview for zio-http ready!

Name Link
🔨 Latest commit a555c91
🔍 Latest deploy log https://app.netlify.com/projects/zio-http/deploys/694adbd1d86db000084982c7
😎 Deploy Preview https://deploy-preview-3872--zio-http.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

- Fix JsonSchema.scala compilation error (caseName variable shadowing)
- Add try-catch for git commands in build.sbt to handle missing tags
- Add @nowarn annotations to suppress unused parameter warnings
- Ensure code compiles without errors or warnings
@developerfred developerfred force-pushed the codingsh/fix-openapi-discriminator branch from e6ee20d to a555c91 Compare December 23, 2025 18:13
@github-actions
Copy link
Contributor

👋 This PR is being automatically closed because it has had a failed CI build for over 3 days.

If you're still working on this, please:

  1. Fix any failing tests or build issues
  2. Push your changes
  3. Reopen this PR once the build passes

Thank you for your contribution! 🙏

@github-actions github-actions bot closed this Dec 27, 2025
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

Successfully merging this pull request may close these issues.

OpenAPI generator ignores @discriminatorName and @caseName annotations for sealed traits

1 participant