{"id":19735159,"url":"https://github.com/roberto/chakram-joi","last_synced_at":"2025-07-16T09:36:57.470Z","repository":{"id":57196752,"uuid":"62979710","full_name":"roberto/chakram-joi","owner":"roberto","description":"Chakram assertion for Joi schema.","archived":false,"fork":false,"pushed_at":"2016-07-29T13:44:16.000Z","size":7,"stargazers_count":8,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-25T01:13:50.829Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/roberto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-07-10T03:24:19.000Z","updated_at":"2025-02-24T09:29:11.000Z","dependencies_parsed_at":"2022-09-16T05:14:29.160Z","dependency_job_id":null,"html_url":"https://github.com/roberto/chakram-joi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/roberto/chakram-joi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roberto%2Fchakram-joi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roberto%2Fchakram-joi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roberto%2Fchakram-joi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roberto%2Fchakram-joi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roberto","download_url":"https://codeload.github.com/roberto/chakram-joi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roberto%2Fchakram-joi/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265500372,"owners_count":23777472,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T00:40:51.574Z","updated_at":"2025-07-16T09:36:57.447Z","avatar_url":"https://github.com/roberto.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chakram-Joi\n\n[Chakram](https://github.com/dareid/chakram) assertion for checking responses using [Joi](https://github.com/hapijs/joi) schema.\n\n## Installation\n\n```\nnpm install --save-dev chakram-joi\n```\n\n## Setup\n\n```js\nchakram.addMethod('joi', require('chakram-joi'));\n```\n\n## Basic Usage\n\n```js\nconst schema = joi.object().keys({\n  name: joi.string()\n});\n\nexpect(response).to.joi(schema);\n```\n\n## Custom Options\n\nJoi has several [options for validation](https://github.com/hapijs/joi/blob/v9.0.0/API.md#validatevalue-schema-options-callback) and it's possible to use them as shown bellow:\n\n```js\nexpect(response).to.joi(schema, { abortEarly: false });\n```\n\nDefault options:\n\n```yml\nabortEarly: true      # stops validation on the first error\npresence: 'required'  # declared items must be found\nallowUnknown: true    # unknown object keys are ignored\n```\n\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froberto%2Fchakram-joi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froberto%2Fchakram-joi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froberto%2Fchakram-joi/lists"}