We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
To Reproduce
@discriminator("type", phantom = true) sealed trait Command object Command { @discriminatorKey("m") //WORKS case class Move(meters: Int) extends Command @discriminatorKey("r") // WORKS case class Rotate(degrees: Int) extends Command @discriminatorKey("j") // DOES NOT WORK - IGNORED case object Jump extends Command }
Expected behavior
{ "type": "object", "additionalProperties": false, "properties": { "type": { "enum": [ "j" ] } }, "required": [ "type" ] }
Actual results
{ "type": "string", "enum": [ "Jump" ] },
Versions:
The text was updated successfully, but these errors were encountered:
this may be a dupe of #291
Sorry, something went wrong.
Is there already a feature request related to producing a const instead of a single value enum on the descriminator?
const
single value enum
descriminator
nope, I don't think so. Please file a new one
#294
andyglow
No branches or pull requests
Describe the bug
To Reproduce
Expected behavior
Actual results
Versions:
The text was updated successfully, but these errors were encountered: