{"id":15685134,"url":"https://github.com/erfanium/fastify-fv","last_synced_at":"2025-05-08T03:17:16.620Z","repository":{"id":57233291,"uuid":"311104352","full_name":"erfanium/fastify-fv","owner":"erfanium","description":"Fastify plugin to support fastest-validator","archived":false,"fork":false,"pushed_at":"2020-12-09T18:33:47.000Z","size":8,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-08T03:17:12.208Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/erfanium.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":"2020-11-08T16:24:04.000Z","updated_at":"2022-02-21T15:44:03.000Z","dependencies_parsed_at":"2022-08-31T20:51:10.370Z","dependency_job_id":null,"html_url":"https://github.com/erfanium/fastify-fv","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erfanium%2Ffastify-fv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erfanium%2Ffastify-fv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erfanium%2Ffastify-fv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erfanium%2Ffastify-fv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erfanium","download_url":"https://codeload.github.com/erfanium/fastify-fv/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252990025,"owners_count":21836669,"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-10-03T17:23:52.828Z","updated_at":"2025-05-08T03:17:16.605Z","avatar_url":"https://github.com/erfanium.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fastify-fv\n\nFastify plugin to support fastest-validator\n\n## usage\n\n```js\nconst fastify = require('fastify')\nconst FV = require('fastest-validator')\nconst fvPlugin = require('fastify-fv')\n\nconst app = fastify()\nconst fv = new FV()\n\napp.register(fvPlugin, fv) // register the plugin\n\napp.route({\n  method: 'POST',\n  url: '/a',\n  schema: {\n    body: { // fastest-validator schema\n      name: 'string',\n      age: { type: 'number', min: 18, max: 99 },\n      category: 'string[]',\n    },\n  },\n  async handler(req) {\n    // code\n  },\n})\n\napp.listen(3000)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferfanium%2Ffastify-fv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferfanium%2Ffastify-fv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferfanium%2Ffastify-fv/lists"}