{"id":15495022,"url":"https://github.com/chnapy/tabbouleh-sample-ajv","last_synced_at":"2025-09-13T05:46:00.811Z","repository":{"id":85641300,"uuid":"204795419","full_name":"Chnapy/tabbouleh-sample-ajv","owner":"Chnapy","description":"Tabbouleh sample with AJV validator","archived":false,"fork":false,"pushed_at":"2020-07-31T16:53:39.000Z","size":689,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-25T23:49:53.645Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://chnapy.github.io/tabbouleh-sample-ajv","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Chnapy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-27T21:42:44.000Z","updated_at":"2020-07-31T15:15:17.000Z","dependencies_parsed_at":"2023-04-13T22:46:32.557Z","dependency_job_id":null,"html_url":"https://github.com/Chnapy/tabbouleh-sample-ajv","commit_stats":{"total_commits":11,"total_committers":1,"mean_commits":11.0,"dds":0.0,"last_synced_commit":"17f424854dd970e9f27e8878e1db5a3ac83035de"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Chnapy/tabbouleh-sample-ajv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chnapy%2Ftabbouleh-sample-ajv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chnapy%2Ftabbouleh-sample-ajv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chnapy%2Ftabbouleh-sample-ajv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chnapy%2Ftabbouleh-sample-ajv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Chnapy","download_url":"https://codeload.github.com/Chnapy/tabbouleh-sample-ajv/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chnapy%2Ftabbouleh-sample-ajv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274922456,"owners_count":25374469,"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","status":"online","status_checked_at":"2025-09-13T02:00:10.085Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-10-02T08:15:49.055Z","updated_at":"2025-09-13T05:46:00.754Z","avatar_url":"https://github.com/Chnapy.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tabbouleh sample with AJV validator\n\nBasic sample which combine [tabbouleh](https://github.com/Chnapy/tabbouleh) (JSON Schema generation) with [ajv](https://github.com/epoberezkin/ajv) (data validation).\n\n[**__Preview here__**](https://chnapy.github.io/tabbouleh-sample-ajv)\n\n# Getting started\n\n```\nnpm install\n```\n\n```\nnpm start\n```\n\n# How it works\n\nSimplified steps:\n\n```typescript\n// generate the UserData schema\nconst schema = Tabbouleh.generateJSONSchema(UserData);\n\n// instantiate AJV \u0026 compile the schema\nconst ajv = new Ajv();\nconst validate = ajv.compile(schema);\n\n// get the data from input or anything else...\n\n// validate data with AJV\nconst valid = validate(data) // boolean\n\nif(!valid) {\n    // there is errors\n    console.log(validate.errors);\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchnapy%2Ftabbouleh-sample-ajv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchnapy%2Ftabbouleh-sample-ajv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchnapy%2Ftabbouleh-sample-ajv/lists"}