todo-api-with-json-schema:带有 json 模式验证的示例 todo API-源码

上传者: 42131414 | 上传时间: 2021-08-04 14:05:45 | 文件大小: 342KB | 文件类型: ZIP
todo-api-with-json-schema 这是一个演示应用程序,展示了如何使用 JSON 模式来验证系统中流动的数据。 在本地运行 克隆 repo 后,从终端执行 npm install npm run dev 应用程序应该在localhost:3000上运行,并且 Cypress 应该打开。 信息 请参阅幻灯片演示 阅读 测试 该项目声明了以下。 然后在端到端测试中使用模式。 查看以下测试以了解如何使用测试中的 JSON 模式 根据模式验证夹具文件 根据响应模式验证 REST api 调用 通过 DOM UI 驱动 Web 应用程序,并使用数据模式验证从应用程序到服务器的 Ajax 调用 当夹具对象与架构不匹配时的示例错误消息 拉姆达 如果您使用或可以用咖喱架构工具函数来创建简洁的功能对象的验证和消毒名单。 有关示例,请参阅cypress/integration/ui-sp

文件下载

资源详情

[{"title":"( 42 个子文件 342KB ) todo-api-with-json-schema:带有 json 模式验证的示例 todo API-源码","children":[{"title":"todo-api-with-json-schema-master","children":[{"title":".gitignore <span style='color:#111;'> 34B </span>","children":null,"spread":false},{"title":"app.js <span style='color:#111;'> 3.88KB </span>","children":null,"spread":false},{"title":"images","children":[{"title":"fixture-does-not-match-schema.png <span style='color:#111;'> 134.17KB </span>","children":null,"spread":false}],"spread":true},{"title":"package.json <span style='color:#111;'> 1.84KB </span>","children":null,"spread":false},{"title":"schema-check.ts <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false},{"title":".npmrc <span style='color:#111;'> 34B </span>","children":null,"spread":false},{"title":"reset-db.js <span style='color:#111;'> 351B </span>","children":null,"spread":false},{"title":"package-lock.json <span style='color:#111;'> 306.49KB </span>","children":null,"spread":false},{"title":"cypress.json <span style='color:#111;'> 41B </span>","children":null,"spread":false},{"title":"schemas","children":[{"title":"post-todo-request.ts <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false},{"title":"index.ts <span style='color:#111;'> 615B </span>","children":null,"spread":false},{"title":"post-todo-response.ts <span style='color:#111;'> 1.37KB </span>","children":null,"spread":false}],"spread":true},{"title":"formats","children":[{"title":"index.ts <span style='color:#111;'> 346B </span>","children":null,"spread":false}],"spread":true},{"title":"tsconfig.json <span style='color:#111;'> 252B </span>","children":null,"spread":false},{"title":"__tests__","children":[{"title":"post-todo-request-test.ts <span style='color:#111;'> 1.78KB </span>","children":null,"spread":false},{"title":"server-test.js <span style='color:#111;'> 1.43KB </span>","children":null,"spread":false},{"title":"__snapshots__","children":[{"title":"server-test.js.snap <span style='color:#111;'> 209B </span>","children":null,"spread":false},{"title":"post-todo-request-test.ts.snap <span style='color:#111;'> 429B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"db.json <span style='color:#111;'> 18B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 1.90KB </span>","children":null,"spread":false},{"title":"vendor","children":[{"title":"axios.min.js <span style='color:#111;'> 12.67KB </span>","children":null,"spread":false},{"title":"polyfill.min.js <span style='color:#111;'> 102.11KB </span>","children":null,"spread":false},{"title":"vuex.js <span style='color:#111;'> 25.03KB </span>","children":null,"spread":false},{"title":"dark.css <span style='color:#111;'> 157B </span>","children":null,"spread":false},{"title":"index.css <span style='color:#111;'> 6.50KB </span>","children":null,"spread":false},{"title":"vue.js <span style='color:#111;'> 275.99KB </span>","children":null,"spread":false}],"spread":false},{"title":"index.html <span style='color:#111;'> 1.80KB </span>","children":null,"spread":false},{"title":"schemas.md <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false},{"title":"document.ts <span style='color:#111;'> 209B </span>","children":null,"spread":false},{"title":".vscode","children":[{"title":"settings.json <span style='color:#111;'> 135B </span>","children":null,"spread":false}],"spread":false},{"title":".circleci","children":[{"title":"config.yml <span style='color:#111;'> 734B </span>","children":null,"spread":false}],"spread":false},{"title":"add-guid.ts <span style='color:#111;'> 196B </span>","children":null,"spread":false},{"title":"renovate.json <span style='color:#111;'> 103B </span>","children":null,"spread":false},{"title":"cypress","children":[{"title":"integration","children":[{"title":"ui-spec.js <span style='color:#111;'> 2.95KB </span>","children":null,"spread":false},{"title":"api-spec.js <span style='color:#111;'> 2.08KB </span>","children":null,"spread":false},{"title":"fixture-spec.js <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false}],"spread":false},{"title":"support","children":[{"title":"commands.js <span style='color:#111;'> 562B </span>","children":null,"spread":false},{"title":"index.js <span style='color:#111;'> 692B </span>","children":null,"spread":false},{"title":"assertions.js <span style='color:#111;'> 828B </span>","children":null,"spread":false},{"title":"index.d.ts <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false}],"spread":false},{"title":"plugins","children":[{"title":"index.js <span style='color:#111;'> 644B </span>","children":null,"spread":false}],"spread":false},{"title":"fixtures","children":[{"title":"todo.json <span style='color:#111;'> 95B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明