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

Union not a full member, yet, example is not supported #960

Open
rsfunc opened this issue Feb 5, 2025 · 0 comments
Open

Union not a full member, yet, example is not supported #960

rsfunc opened this issue Feb 5, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@rsfunc
Copy link

rsfunc commented Feb 5, 2025

Expected Behavior

Should compile

Actual Behavior

Fails

Steps to Reproduce the Problem

Any Union struct would do

#[derive(Union, Debug, Clone, PartialEq)]
#[oai(example, discriminator_name = "type", one_of = true)]
pub enum RecentWage {
    Current(Wage),
    WhenStart(Wage),
    WhenEnded(Wage),
    NoneFound(Void),
}

Specifications

  • Version:
  • Platform:
  • Subsystem:
@rsfunc rsfunc added the bug Something isn't working label Feb 5, 2025
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

1 participant