These are chat archives for dareid/chakram

10th
Jul 2016
Roberto Soares
@roberto
Jul 10 2016 16:57
hi @dareid! I'm using chakram with joi in a project and have created a assertion for chakram (https://github.com/roberto/chakram-joi ), reducing the amount of written code for schemas: https://gist.github.com/roberto/8fae7b41c85c1d29065c60c1a2d618f2/revisions .
Do you think adding it to chakram as an alternative to json schema make sense? if yes, I would make a pull request adding it.
Daniel Reid
@dareid
Jul 10 2016 17:22
Wow that is great to see! Would love to see that merged into the main repo
I suppose this may indicate chakram needs some sort of plug in system
Daniel Reid
@dareid
Jul 10 2016 17:28
or should I say a better supported plugin system for published npm modules
Roberto Soares
@roberto
Jul 10 2016 17:33
@dareid great! I'll prepare a pull request. about the plugin system, just a better support for npm modules would be nice
Daniel Reid
@dareid
Jul 10 2016 17:34
Yea I think that may be something to look at, thanks for preparing that!
Roberto Soares
@roberto
Jul 10 2016 17:45
I'm not sure about the name for the method: expect(response).to.joi(schema) but I can ask for suggestions in the PR
Daniel Reid
@dareid
Jul 10 2016 17:47
Hmm yea json schema has taken schema, will have a think. Maybe time to have a clean up and a v2