question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Discriminator field can't be used

See original GitHub issue

Hey, I was looking at the split feature instructions and noticed that the discriminator is set to be serialized as _discriminator but CouchDB will not allow that as shown in the picture below because _ character is considered special

image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
matteobortolazzocommented, Mar 10, 2021

Thanks a lot for the help

0reactions
panoukos41commented, Mar 10, 2021

Okay, it works just fine, yea that actually makes sense that it’s better this way in the end 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

[JAVA] Cannot use single discriminator field for two-level ...
Description I would like to use "inheritance" via allOf in the spec, and I'd like more than one level for my request schemas....
Read more >
Mongoose discriminator is ignoring an extra field
1 Answer. The issue is that you are treating Category model the same as the Allowance category discriminator model. You cannot save isPercent ......
Read more >
How to use the OpenAPI discriminator
The discriminator explicitly declares which property you can inspect to determine the object type. Electric VehicleFueled VehiclePedaled Vehicle.
Read more >
Solved: Error with discriminator
Solved: I'm trying to create an OpenAPI specification with a body with a discriminator field and two models, using oneOf.
Read more >
The Discriminator Column Of The Persistent Type Is Set But ...
This error occurs when a persistent type is not mapped to a table but there is discriminator column specified at the same time....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found