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

Error: Invalid schema content: (nameIdFormat.$_root.alternatives) #3

Closed
gigabytejayesh opened this issue Sep 28, 2020 · 2 comments
Closed

Comments

@gigabytejayesh
Copy link

Hi,
Our existing codebase has the following Hapi dependency,

  • "@hapi/hapi": "^18.4.0",
  • "@hapi/joi": "^16.1.8",

Getting error Error: Invalid schema content: (nameIdFormat.$_root.alternatives) while using @hapi/joi version ^16.1.8
Also, checked for the lower version works till @hapi/joi 15.1.1

Is there any plan to release new versions that support the latest Hapi libraries.

@berzniz
Copy link
Contributor

berzniz commented Oct 19, 2020

Hi @gigabytejayesh

It is currently supporting @hapi/joi 15 because that's what we use.

As Joi leaving hapi (see here: hapijs/joi#2411) it is quite hard to understand what version should be chosen here and I don't want to implement multiple versions for each Joi.

We only have a use of Joi.string().required() which should be the same on all versions. Can you spot what isn't compatible with Joi 16 here? There's an option to get Joi as a dependency in the config and use it. Do you think that would be a valid solution?

@berzniz
Copy link
Contributor

berzniz commented Nov 20, 2020

Latest update should allow for any version of Joi/Boom (bring your own version...)

@berzniz berzniz closed this as completed Nov 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants