Coder Social home page Coder Social logo

joi 4.0 about lout HOT 11 CLOSED

hueniverse avatar hueniverse commented on June 11, 2024
joi 4.0

from lout.

Comments (11)

Marsup avatar Marsup commented on June 11, 2024

I'm already looking at most of the commits, but lout doesn't seem to be too much impacted in its current features, more in the new things coming, did you have anything specific in mind ?
I can't seem to make the 5.0 branch work with joi 4, should it ?

from lout.

hueniverse avatar hueniverse commented on June 11, 2024

5.0 branch is no where near ready...

I would like to see lout support the new conditionals, references, etc.

from lout.

Marsup avatar Marsup commented on June 11, 2024

Testing this a bit, refs are gonna be hard to get since it is described as a type 'any' and it's only by exploring the valids that I get a clue, still doable I guess.

from lout.

hueniverse avatar hueniverse commented on June 11, 2024

Example? I didn't pay that much attention to describe()...

from lout.

Marsup avatar Marsup commented on June 11, 2024

All refs are output this way :

> Joi.compile(Joi.ref('a.b')).describe()
{ type: 'any',
  flags: { allowOnly: true },
  valids:
   [ undefined,
     { [Function]
       isContext: false,
       key: 'a.b',
       path: [Object],
       depth: 2,
       root: 'a',
       isJoi: true,
       toString: [Function] } ],
  invalids: [ null ] }

I already begun implementing detection in hapi5 branch, I think it should do unless internals of refs change.

from lout.

hueniverse avatar hueniverse commented on June 11, 2024

That's a bug.

from lout.

Marsup avatar Marsup commented on June 11, 2024

@hueniverse The ref bug is not fixed in 4.3 right ?

from lout.

hueniverse avatar hueniverse commented on June 11, 2024

No. I forgot about it due to lack of open issue...

from lout.

Marsup avatar Marsup commented on June 11, 2024

My bad, will do.

from lout.

Marsup avatar Marsup commented on June 11, 2024

OK this is almost feature complete ! The only thing missing is object.pattern for which I have no description, opening issue on joi.

from lout.

Marsup avatar Marsup commented on June 11, 2024

Unintentionally released as 5.0.2, closing this one.

from lout.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.