-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Show all the mapping entries #774
Conversation
Any news on this? |
Sorry for the delay. I am busy right now. |
Hi, |
b15bbbb
to
bdbb6b4
Compare
I checked the PR. It looks good to me. I also don't quite like introducing new vendor extension as the other tooling won't support this use-case. I see your use case though. If you have any suggestion throw it in pls |
Hi @RomanHotsiy, have you reached any conclusion? I hit this issue as well and I'm looking for some solution. I can also help with creating a rebased and updated PR if @zeapo is not available, just your design decision is needed. |
I'm waiting for an update. I'm using my fork until there is a decision. I
believe that the flag has to be available.
Le mer. 31 juil. 2019 à 19:19, Jan Čermák <[email protected]> a
écrit :
… Hi @RomanHotsiy <https://github.com/RomanHotsiy>, have you reached any
conclusion? I hit this issue as well and I'm looking for some solution. I
can also help with creating a rebased and updated PR if @zeapo
<https://github.com/zeapo> is not available, just your design decision is
needed.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#774?email_source=notifications&email_token=AACCABQAZF7TJDCOJGXPVUTQCHJRLA5CNFSM4GOVPTEKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3IDVNI#issuecomment-516962997>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACCABQZGBOWPLNXRTYUSYTQCHJRLANCNFSM4GOVPTEA>
.
|
If I understand the feature, it's to use the mapping exactly as defined, and it's not necessarily exhaustive if you explicitly remove an item from your mapping definition it could still be discriminated. Some alternative name ideas: x-definedMapping Please help with more ideas. |
@adamaltman That's exactly it. I like the |
@zeapo the next step is to resolve conflicts and rename to |
Yup, I'll update my PR. |
bdbb6b4
to
05ea976
Compare
Hello @RomanHotsiy, hope you have time to look into this PR soon. We have also hit this issue and are looking for a fix. |
It's indeed almost a year since this PR is open, and it's used in production on our side with no issues. I don't understand why It's taking that much time. |
Just an update, this PR is now officially 1 year and a few weeks old |
Can we bump this a little @RomanHotsiy ? |
replaced by #1215 |
When the discriminator has
mapping
with more than one key pointing to the same ref. Only the last one was shown.The following example would show only
kitten
,dog
andbee
in the dropdown. We'd expect to have all four (i.e.cat
also!).In this PR. The dropdown will show all the mappings:
Another use-case is when the mapping is partial, here the
dog
mapping was removed:The type
Dog
will be included in addition to the mappings:The third use-case is an exhaustive mapping, in that case we'd like to ignore non-mapping child classes. I've added a new extension
x-limitToMapping
of type boolean. When used, it excludes the classDog
in the following case:will yield the following result: