{"id":18562905,"url":"https://github.com/fullstackplayer/fsp.jschema","last_synced_at":"2025-05-15T18:11:48.253Z","repository":{"id":57242496,"uuid":"441078064","full_name":"FullStackPlayer/fsp.JSchema","owner":"FullStackPlayer","description":"A JsonSchema validator written in TypeScript, compatible with both Nodejs and Deno.","archived":false,"fork":false,"pushed_at":"2022-05-07T01:44:55.000Z","size":103,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-15T18:11:48.067Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FullStackPlayer.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}},"created_at":"2021-12-23T05:58:18.000Z","updated_at":"2021-12-23T09:36:12.000Z","dependencies_parsed_at":"2022-09-09T04:01:26.553Z","dependency_job_id":null,"html_url":"https://github.com/FullStackPlayer/fsp.JSchema","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FullStackPlayer%2Ffsp.JSchema","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FullStackPlayer%2Ffsp.JSchema/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FullStackPlayer%2Ffsp.JSchema/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FullStackPlayer%2Ffsp.JSchema/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FullStackPlayer","download_url":"https://codeload.github.com/FullStackPlayer/fsp.JSchema/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254394726,"owners_count":22063984,"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-06T22:11:23.358Z","updated_at":"2025-05-15T18:11:48.236Z","avatar_url":"https://github.com/FullStackPlayer.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"fsp.JSchema 说明文档\n---\n\n# 目的\n\n解决 `“泛JS”` 生态下对 JSON 数据的格式校验问题，如以下场景：\n\n- 服务端接收客户端 post 来的数据，在处理之前需要先验证其是否符合 API 文档要求的规范，手写代码来检测是完全不可以接受的！\n- 前端拿到后端返回的数据，在进行 UI 渲染之前也需要检验是否符合预期，同样不能接受手写代码进行检测的方式。\n\n它是用 TypeScript 写就的，优先适配 Deno 运行时，当然也可以编译成 JS，因此在 Nodejs 和 Web 前端环境下都可以完美运行。\n\n你可能已经知道 `JSON Schema` 以及它的 JS 实现，如 `ajv` 和 `djv` 这些，的确 Deno.JSchema 解决的是一样的问题，但是这绝不是重复造轮子，其优势如下：\n\n# 优点\n\n- 纯 TypeScript 开发，原生适配 Deno 运行时\n- 同时编译成 JS 版本进行发布，WEB 和 Nodejs 全支持\n- 轻量级、零依赖，拷贝即安装\n- 语义化强，好学好用\n\n# 用法（TBD）","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffullstackplayer%2Ffsp.jschema","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffullstackplayer%2Ffsp.jschema","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffullstackplayer%2Ffsp.jschema/lists"}