Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Schema validator: Add discriminator value to the error message #105

Merged
merged 1 commit into from
May 15, 2020

Conversation

swiesend
Copy link
Contributor

@swiesend swiesend commented May 15, 2020

Hey @llfbandit,

I ran into this error message with the schema from #95

Schema selection can't be made for discriminator 'name'.

Bus this was quite uninformative and I had to debug manually which of my values in a large array was wrong. I hope this change helps to clarify the message.

@llfbandit llfbandit changed the title Add the discriminator value to the INVALID_SCHEMA_ERR Schema validator: Add discriminator value to the error message May 15, 2020
@llfbandit
Copy link
Contributor

Thanks for the PR !

@llfbandit llfbandit closed this May 15, 2020
@llfbandit llfbandit reopened this May 15, 2020
@llfbandit llfbandit merged commit 4ddedc6 into openapi4j:master May 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants