{"_id":"cypress-ajv-schema-validator","_rev":"9-8b1ece1a050f14179c94eccacd003cf9","name":"cypress-ajv-schema-validator","dist-tags":{"latest":"2.0.2"},"versions":{"1.0.0":{"name":"cypress-ajv-schema-validator","version":"1.0.0","keywords":["plugin"],"author":{"name":"Sebastian Clavijo Suero"},"license":"MIT","_id":"cypress-ajv-schema-validator@1.0.0","maintainers":[{"name":"sclavijosuero","email":"sclavijosuero@gmail.com"}],"homepage":"https://github.com/sclavijosuero/cypress-ajv-schema-validator#readme","bugs":{"url":"https://github.com/sclavijosuero/cypress-ajv-schema-validator/issues"},"dist":{"shasum":"39d762489eabe9b83c374fc13e976d8074ec2864","tarball":"https://registry.npmjs.org/cypress-ajv-schema-validator/-/cypress-ajv-schema-validator-1.0.0.tgz","fileCount":48,"integrity":"sha512-vzu0Vn3EGA5+YR3IBd59Nlc7nI0+VBHs6aFsG6+s6v+BW6fPUr5dQE07olO61q+iYAesUOMA4JJjRur1oaVd7Q==","signatures":[{"sig":"MEUCIAreemScUQUMXNuZXeZEHDkCXWMH7/m/NITkH/5UQvfmAiEAisKA/AF6FU4NrNQCo31IklZ0Ubbkmvjd+XvYOoQXLEk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1775831},"main":"src/index.js","gitHead":"8a40e2028c097512c240fa2b00555c5ad71a4acc","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"sclavijosuero","email":"sclavijosuero@gmail.com"},"repository":{"url":"git+https://github.com/sclavijosuero/cypress-ajv-schema-validator.git","type":"git"},"_npmVersion":"9.5.0","description":"Lightweight API schema validator for Plain JSON schemas, Swagger schema documents, or OpenAPI schema documents using Ajv JSON Schema Validator","directories":{},"_nodeVersion":"18.14.2","dependencies":{"ajv":"^8.16.0","ajv-formats":"^3.0.1","cypress-plugin-api":"^2.11.1"},"_hasShrinkwrap":false,"devDependencies":{"cypress":"^13.11.0"},"_npmOperationalInternal":{"tmp":"tmp/cypress-ajv-schema-validator_1.0.0_1718492531289_0.4130232865591732","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"cypress-ajv-schema-validator","version":"1.1.0","keywords":["plugin"],"author":{"name":"Sebastian Clavijo Suero"},"license":"MIT","_id":"cypress-ajv-schema-validator@1.1.0","maintainers":[{"name":"sclavijosuero","email":"sclavijosuero@gmail.com"}],"homepage":"https://github.com/sclavijosuero/cypress-ajv-schema-validator#readme","bugs":{"url":"https://github.com/sclavijosuero/cypress-ajv-schema-validator/issues"},"dist":{"shasum":"cafcd92533a1ae96b837e5c928e7d4e1a4711355","tarball":"https://registry.npmjs.org/cypress-ajv-schema-validator/-/cypress-ajv-schema-validator-1.1.0.tgz","fileCount":48,"integrity":"sha512-7JkFY7wos7gg0iJR2yMQ77OXW9Q3jKq0JQHQOaqWB1xAZdoHlqjtKzMTw0U4koPNxSB+hDSDjo5NOeor5OiYRg==","signatures":[{"sig":"MEQCIAsOizkHSi7wdMWyfqLKS3xYYbdgXLgZwslynFw69QidAiBSiSID//miVTXre05gYcJjWvMF4/PPRoBvoAWBaDmuow==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1775878},"main":"src/index.js","gitHead":"8a40e2028c097512c240fa2b00555c5ad71a4acc","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"sclavijosuero","email":"sclavijosuero@gmail.com"},"repository":{"url":"git+https://github.com/sclavijosuero/cypress-ajv-schema-validator.git","type":"git"},"_npmVersion":"9.5.0","description":"Lightweight API schema validator for Plain JSON schemas, Swagger schema documents, or OpenAPI schema documents using Ajv JSON Schema Validator","directories":{},"_nodeVersion":"18.14.2","dependencies":{"ajv":"^8.16.0","ajv-formats":"^3.0.1","cypress-plugin-api":"^2.11.1"},"_hasShrinkwrap":false,"devDependencies":{"cypress":"^13.11.0"},"_npmOperationalInternal":{"tmp":"tmp/cypress-ajv-schema-validator_1.1.0_1719945420080_0.3717523094685027","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"cypress-ajv-schema-validator","version":"1.1.1","keywords":["plugin","cypress","ajv","schema","validator","json"],"author":{"name":"Sebastian Clavijo Suero"},"license":"MIT","_id":"cypress-ajv-schema-validator@1.1.1","maintainers":[{"name":"sclavijosuero","email":"sclavijosuero@gmail.com"}],"homepage":"https://github.com/sclavijosuero/cypress-ajv-schema-validator#readme","bugs":{"url":"https://github.com/sclavijosuero/cypress-ajv-schema-validator/issues"},"dist":{"shasum":"10151a31b821c9e4c4fbd72b8d91d12fa907addc","tarball":"https://registry.npmjs.org/cypress-ajv-schema-validator/-/cypress-ajv-schema-validator-1.1.1.tgz","fileCount":50,"integrity":"sha512-EA+2ePgjh2K5Bom0VTJzUdJaUh1P1mlLPAylVRjvsSXgcrytIjhj/WaHaBoDvD3ethVkU7u4GS79x1t8RlQIfg==","signatures":[{"sig":"MEYCIQDYeH+vJ+wE6iZd9+QJ2z0QusSi4Qq0TtpssWPgM6TZCQIhANDyhZvglzxFrkfEck7MKj0yX5kvsd852TJ7nE06xlKe","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1835544},"main":"src/index.js","gitHead":"6f2d9dc668dd924fd537e0f6ddfafcb1721f0a91","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"sclavijosuero","email":"sclavijosuero@gmail.com"},"repository":{"url":"git+https://github.com/sclavijosuero/cypress-ajv-schema-validator.git","type":"git"},"_npmVersion":"9.5.0","description":"Lightweight API schema validator for Plain JSON schemas, Swagger schema documents, or OpenAPI schema documents using Ajv JSON Schema Validator","directories":{},"_nodeVersion":"18.14.2","dependencies":{"ajv":"^8.16.0","ajv-formats":"^3.0.1","cypress-plugin-api":"^2.11.1"},"_hasShrinkwrap":false,"devDependencies":{"cypress":"^13.11.0"},"_npmOperationalInternal":{"tmp":"tmp/cypress-ajv-schema-validator_1.1.1_1726203081022_0.34325955650971784","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"cypress-ajv-schema-validator","version":"1.2.0","keywords":["plugin","cypress","ajv","schema","validator","json"],"author":{"name":"Sebastian Clavijo Suero"},"license":"MIT","_id":"cypress-ajv-schema-validator@1.2.0","maintainers":[{"name":"sclavijosuero","email":"sclavijosuero@gmail.com"}],"homepage":"https://github.com/sclavijosuero/cypress-ajv-schema-validator#readme","bugs":{"url":"https://github.com/sclavijosuero/cypress-ajv-schema-validator/issues"},"dist":{"shasum":"0a87a204e07d12d2887f8f43137b1da3c050b6e3","tarball":"https://registry.npmjs.org/cypress-ajv-schema-validator/-/cypress-ajv-schema-validator-1.2.0.tgz","fileCount":57,"integrity":"sha512-nuWgPol4OYpTMWY5zU43jt0mlaJ4c7kzk8DVAUWY8r/mRvVrxxNPxTXBeqOmBk44cDUC3mwAfnb8sZHyj2nzTA==","signatures":[{"sig":"MEUCIHEa4PgVInn6rMXjuoOTN+SmwP/MY+hM8Gt8zIpWM0CYAiEAo2kpN6gPyvaFcm6rZiM1qh6KsyQgzgTKhvPvORECuRI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2505044},"main":"src/index.js","gitHead":"9c79e5bb474eb1201fe938794fc4407d5eff3021","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"sclavijosuero","email":"sclavijosuero@gmail.com"},"repository":{"url":"git+https://github.com/sclavijosuero/cypress-ajv-schema-validator.git","type":"git"},"_npmVersion":"9.5.0","description":"Lightweight API schema validator for Plain JSON schemas, Swagger schema documents, or OpenAPI schema documents using Ajv JSON Schema Validator","directories":{},"_nodeVersion":"18.14.2","dependencies":{"ajv":"^8.16.0","ajv-formats":"^3.0.1","highlight.js":"^11.10.0","cypress-plugin-api":"^2.11.1"},"_hasShrinkwrap":false,"devDependencies":{"cypress":"^13.11.0","@bahmutov/cy-api":"^2.2.6"},"_npmOperationalInternal":{"tmp":"tmp/cypress-ajv-schema-validator_1.2.0_1728252350924_0.9408333142104957","host":"s3://npm-registry-packages"}},"1.3.0":{"name":"cypress-ajv-schema-validator","version":"1.3.0","keywords":["plugin","cypress","ajv","schema","validator","json"],"author":{"name":"Sebastian Clavijo Suero"},"license":"MIT","_id":"cypress-ajv-schema-validator@1.3.0","maintainers":[{"name":"sclavijosuero","email":"sclavijosuero@gmail.com"}],"homepage":"https://github.com/sclavijosuero/cypress-ajv-schema-validator#readme","bugs":{"url":"https://github.com/sclavijosuero/cypress-ajv-schema-validator/issues"},"dist":{"shasum":"218e673a71194d8eb4b895d20e2de5a393e9b182","tarball":"https://registry.npmjs.org/cypress-ajv-schema-validator/-/cypress-ajv-schema-validator-1.3.0.tgz","fileCount":57,"integrity":"sha512-4OlrMw+vS6JqKEt4tf6/pMumIdbWEtXYLULrPweDFwwIGegeeD2oWd0YRMPdEghwVLduHzpryPsJMiGqJePdiw==","signatures":[{"sig":"MEYCIQDwU/9IitRtWUJ5HQ/Sb+kfVb1Z5unCwVjzTuwZTGD5vwIhAJdZCALU5lLOoxBpp9svDBqbObz9LwQI7DOR4j9mdv+S","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2505854},"main":"src/index.js","gitHead":"e3b31b1803259d73b600fb0195ea34790b3f8b73","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"sclavijosuero","email":"sclavijosuero@gmail.com"},"repository":{"url":"git+https://github.com/sclavijosuero/cypress-ajv-schema-validator.git","type":"git"},"_npmVersion":"9.5.0","description":"Lightweight API schema validator for Plain JSON schemas, Swagger schema documents, or OpenAPI schema documents using Ajv JSON Schema Validator","directories":{},"_nodeVersion":"18.14.2","dependencies":{"ajv":"^8.16.0","ajv-formats":"^3.0.1","highlight.js":"^11.10.0","cypress-plugin-api":"^2.11.1"},"_hasShrinkwrap":false,"devDependencies":{"cypress":"^13.11.0","@bahmutov/cy-api":"^2.2.6"},"_npmOperationalInternal":{"tmp":"tmp/cypress-ajv-schema-validator_1.3.0_1728519588417_0.05353750804007151","host":"s3://npm-registry-packages"}},"1.4.0":{"name":"cypress-ajv-schema-validator","version":"1.4.0","keywords":["plugin","cypress","ajv","schema","validator","json"],"author":{"name":"Sebastian Clavijo Suero"},"license":"MIT","_id":"cypress-ajv-schema-validator@1.4.0","maintainers":[{"name":"sclavijosuero","email":"sclavijosuero@gmail.com"}],"homepage":"https://github.com/sclavijosuero/cypress-ajv-schema-validator#readme","bugs":{"url":"https://github.com/sclavijosuero/cypress-ajv-schema-validator/issues"},"dist":{"shasum":"1b515642824f84fd6db3949ca39739b1cb1a1027","tarball":"https://registry.npmjs.org/cypress-ajv-schema-validator/-/cypress-ajv-schema-validator-1.4.0.tgz","fileCount":58,"integrity":"sha512-Nve6FTTrHIQU5LTBjUUdexqdyp1hVfZi7W5ad9IWS5IiNZleu/QujwuVc63duPehgf4uWjRHRXTLQHXL7LhK8Q==","signatures":[{"sig":"MEUCIC5NWc/kAgHPSo+FxQkqAodchoX1d4XWoRKSVg69TbCbAiEAiRYviFxW2r4tm/Rbrrz9XSXGAgmMqUVJg6zk/PKhHHA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2507818},"main":"src/index.js","types":"src/index.d.ts","gitHead":"d60cd323e71d914d427a00f3fa12109eded4821d","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"sclavijosuero","email":"sclavijosuero@gmail.com"},"repository":{"url":"git+https://github.com/sclavijosuero/cypress-ajv-schema-validator.git","type":"git"},"_npmVersion":"9.5.0","description":"Lightweight API schema validator for Plain JSON schemas, Swagger schema documents, or OpenAPI schema documents using Ajv JSON Schema Validator","directories":{},"_nodeVersion":"18.14.2","dependencies":{"ajv":"^8.16.0","ajv-formats":"^3.0.1","highlight.js":"^11.10.0","cypress-plugin-api":"^2.11.1"},"_hasShrinkwrap":false,"devDependencies":{"cypress":"^13.16.1","@bahmutov/cy-api":"^2.2.6"},"_npmOperationalInternal":{"tmp":"tmp/cypress-ajv-schema-validator_1.4.0_1733506279872_0.6156426197991278","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"cypress-ajv-schema-validator","version":"2.0.0","keywords":["plugin","cypress","ajv","schema","validator","json"],"author":{"name":"Sebastian Clavijo Suero"},"license":"MIT","_id":"cypress-ajv-schema-validator@2.0.0","maintainers":[{"name":"sclavijosuero","email":"sclavijosuero@gmail.com"}],"homepage":"https://github.com/sclavijosuero/cypress-ajv-schema-validator#readme","bugs":{"url":"https://github.com/sclavijosuero/cypress-ajv-schema-validator/issues"},"dist":{"shasum":"13a1a896bcb4191221ddc79494182464b1bbd3b4","tarball":"https://registry.npmjs.org/cypress-ajv-schema-validator/-/cypress-ajv-schema-validator-2.0.0.tgz","fileCount":61,"integrity":"sha512-I5zBD0f89rHBZ78i3oLYBGdvZsjO1baiXSBS0qKogPqos313IEvyEckA87c/9cWg/G2reqJ4McYnZpQTWxdvZw==","signatures":[{"sig":"MEUCIBC3tBYxt/FlbtSBlqwPlnwKshbsMtmlNPppo0xxVJQLAiEAmLENuk8fnZPBE61Hhd+9WY03pD3QuLiyy2S4WTn+ftc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":14536953},"main":"src/index.js","types":"src/index.d.ts","gitHead":"471e33b81636a01307331818ca90c53304dd5f77","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"sclavijosuero","email":"sclavijosuero@gmail.com"},"repository":{"url":"git+https://github.com/sclavijosuero/cypress-ajv-schema-validator.git","type":"git"},"_npmVersion":"10.9.2","description":"Lightweight Cypress plugin for API schema validation against plain JSON schemas, Swagger schema documents, or OpenAPI schema documents, leveraging the core-ajv-schema-validator powered by the Ajv JSON Schema Validator.","directories":{},"_nodeVersion":"22.13.1","dependencies":{"highlight.js":"^11.10.0","cypress-plugin-api":"^2.11.2"},"_hasShrinkwrap":false,"devDependencies":{"cypress":"^13.16.1","@bahmutov/cy-api":"^2.2.6","core-ajv-schema-validator":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/cypress-ajv-schema-validator_2.0.0_1744583763094_0.43308264645470795","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"name":"cypress-ajv-schema-validator","version":"2.0.1","keywords":["plugin","cypress","ajv","schema","validator","json"],"author":{"name":"Sebastian Clavijo Suero"},"license":"MIT","_id":"cypress-ajv-schema-validator@2.0.1","maintainers":[{"name":"sclavijosuero","email":"sclavijosuero@gmail.com"}],"homepage":"https://github.com/sclavijosuero/cypress-ajv-schema-validator#readme","bugs":{"url":"https://github.com/sclavijosuero/cypress-ajv-schema-validator/issues"},"dist":{"shasum":"4567c340beafbe68fbf2cc2fb844f7da233f979f","tarball":"https://registry.npmjs.org/cypress-ajv-schema-validator/-/cypress-ajv-schema-validator-2.0.1.tgz","fileCount":61,"integrity":"sha512-sJpiZsvn6X6+51reoVdQ63LqD8gYE/25LE+VKMKaMF8G7a7Jt8x7OGRscZbzHZPhJB9UGXA64rzRy4oszBvQlQ==","signatures":[{"sig":"MEUCIHhDnW0lpnH+h86j8PRaGx/FlsjAuwR8WS7R0fM0U2NLAiEAqZhM6nOxXqhr/orTQ7PVk2wPfXcrIfOskANhRIS2TqE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":14537026},"main":"src/index.js","types":"src/index.d.ts","gitHead":"3a792eb3576647c7ea4500e9b7b89d7b90b1f59d","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"sclavijosuero","email":"sclavijosuero@gmail.com"},"repository":{"url":"git+https://github.com/sclavijosuero/cypress-ajv-schema-validator.git","type":"git"},"_npmVersion":"10.9.2","description":"Lightweight Cypress plugin for API schema validation against plain JSON schemas, Swagger schema documents, or OpenAPI schema documents, leveraging the core-ajv-schema-validator powered by the Ajv JSON Schema Validator.","directories":{},"_nodeVersion":"22.13.1","dependencies":{"highlight.js":"^11.10.0","cypress-plugin-api":"^2.11.2","core-ajv-schema-validator":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"cypress":"^13.16.1","@bahmutov/cy-api":"^2.2.6"},"_npmOperationalInternal":{"tmp":"tmp/cypress-ajv-schema-validator_2.0.1_1744584747196_0.8277048649151479","host":"s3://npm-registry-packages-npm-production"}},"2.0.2":{"name":"cypress-ajv-schema-validator","version":"2.0.2","description":"Lightweight Cypress plugin for API schema validation against plain JSON schemas, Swagger schema documents, or OpenAPI schema documents, leveraging the core-ajv-schema-validator powered by the Ajv JSON Schema Validator.","main":"src/index.js","types":"src/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/sclavijosuero/cypress-ajv-schema-validator.git"},"keywords":["plugin","cypress","ajv","schema","validator","json"],"author":{"name":"Sebastian Clavijo Suero"},"license":"MIT","bugs":{"url":"https://github.com/sclavijosuero/cypress-ajv-schema-validator/issues"},"homepage":"https://github.com/sclavijosuero/cypress-ajv-schema-validator#readme","devDependencies":{"@bahmutov/cy-api":"^2.2.6","cypress":"^13.16.1"},"dependencies":{"core-ajv-schema-validator":"^1.0.0","cypress-plugin-api":"^2.11.2","highlight.js":"^11.10.0"},"_id":"cypress-ajv-schema-validator@2.0.2","gitHead":"58120c32f802a046bc2e42bf5c0a0cd7b9385345","_nodeVersion":"22.13.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-Fq+ykMGbSyo8X+DeZxHXKj1acf4RrPQ4ByQjmDHqTrtkt++kKfHIBYYN6jtvTymYEPu0xH5peDKbvYh1t3pZkA==","shasum":"0b6b41228f65b8eca20edbef9b0bdeb666b95361","tarball":"https://registry.npmjs.org/cypress-ajv-schema-validator/-/cypress-ajv-schema-validator-2.0.2.tgz","fileCount":61,"unpackedSize":14537621,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCjSrMsWhhSiAasyHSUDaPuddYv2PWMD71faX6vnxCxfgIgeet37be8t0Z3xxRzCnTgWkMQz8eiqzoiST+jm+ylcnM="}]},"_npmUser":{"name":"sclavijosuero","email":"sclavijosuero@gmail.com"},"directories":{},"maintainers":[{"name":"sclavijosuero","email":"sclavijosuero@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cypress-ajv-schema-validator_2.0.2_1754169776142_0.5856999220706736"},"_hasShrinkwrap":false}},"time":{"created":"2024-06-15T23:02:11.288Z","modified":"2025-08-02T21:22:56.695Z","1.0.0":"2024-06-15T23:02:11.525Z","1.1.0":"2024-07-02T18:37:00.298Z","1.1.1":"2024-09-13T04:51:21.254Z","1.2.0":"2024-10-06T22:05:51.189Z","1.3.0":"2024-10-10T00:19:48.816Z","1.4.0":"2024-12-06T17:31:20.132Z","2.0.0":"2025-04-13T22:36:03.472Z","2.0.1":"2025-04-13T22:52:27.604Z","2.0.2":"2025-08-02T21:22:56.519Z"},"bugs":{"url":"https://github.com/sclavijosuero/cypress-ajv-schema-validator/issues"},"author":{"name":"Sebastian Clavijo Suero"},"license":"MIT","homepage":"https://github.com/sclavijosuero/cypress-ajv-schema-validator#readme","keywords":["plugin","cypress","ajv","schema","validator","json"],"repository":{"type":"git","url":"git+https://github.com/sclavijosuero/cypress-ajv-schema-validator.git"},"description":"Lightweight Cypress plugin for API schema validation against plain JSON schemas, Swagger schema documents, or OpenAPI schema documents, leveraging the core-ajv-schema-validator powered by the Ajv JSON Schema Validator.","maintainers":[{"name":"sclavijosuero","email":"sclavijosuero@gmail.com"}],"readme":"# cypress-ajv-schema-validator\r\n\r\nA Cypress plugin for API schema validation against **plain JSON schemas**, **Swagger schema documents**, or **OpenAPI schema documents**.\r\n\r\n> 🚀🚀🚀 **IMPORTANT NOTE: The `cypress-ajv_schema-validator` plugin is now considered legacy and is being replaced by the new `cypress-schema-validator`.\r\n> The new `cypress-schema-validator` plugin is fully backward compatible with `cypress-ajv_schema-validator` and extends its API to support Zod schema validation in addition to AJV schema validation. \r\n> You can find the new plugin at https://www.npmjs.com/package/cypress-schema-validator\r\n\r\n![Overview](videos/overview.gif) \r\n\r\nFor a detailed guide on setting up and using `cypress-ajv_schema-validator` plugin to maximize its benefits, please refer to my articles:\r\n  - [\"CYPRESS-AJV-SCHEMA-VALIDATOR Plugin: The Brave Vigilante for Your API Contracts\"](https://dev.to/sebastianclavijo/cypress-ajv-schema-validator-plugin-the-brave-vigilante-for-your-api-contracts-5cfe)\r\n  - [\"CYPRESS-AJV-SCHEMA-VALIDATOR v1.2.0: Boost Debugging Skills from Vigilante to Superhero with Advanced Schema Error Insights!\"](https://dev.to/sebastianclavijo/cypress-ajv-schema-validator-v120-boost-debugging-skills-from-vigilante-to-superhero-with-advanced-schema-error-insights-1hld)\r\n\r\n\r\n## Main Features\r\n\r\n- Cypress command **`cy.validateSchema()`** to report JSON Schema validation errors in the response obtained from any network request with `cy.request()`.\r\n  \r\n- The command `cy.validateSchema()` is chainable and returns the original API response yielded.\r\n  \r\n- Schema is provided as a JSON object, that could come from a Cypress fixture.\r\n\r\n- Uses the **core-ajv-schema-validator** plugin, which leverages the **Ajv JSON Schema Validator** as its engine **_(NEW in v2.0.0)_**.\r\n  \r\n- Supports schemas provided as **plain JSON schema**, **OpenAPI 3.0.1 schema document** and **Swagger 2.0 schema document**.\r\n  \r\n- Provides in the Cypress log a summary of the schema errors as well as a list of the individual errors in the schema validation.\r\n  \r\n- By clicking on the summary of schema errors in the Cypress log, the console will output:\r\n  -  Number of schema errors.\r\n  -  Full list of schema errors as provided by Ajv.\r\n  -  A nested tree view of the validated data, clearly indicating the errors and where they occurred in an easy-to-understand format.\r\n\r\n- New environment variable `disableSchemaValidation` to disable schema validation in your tests **_(NEW in v1.2.0)_**.\r\n\r\n- Provides full integration with **Gleb Bahmutov**'s [@bahmutov/cy-api](https://github.com/bahmutov/cy-api) and **Filip Hric**'s [cypress-plugin-api](https://github.com/filiphric/cypress-plugin-api) plugins, enabling JSON schema validations to be performed directly after the `cy.api()` command.\r\n  \r\n  When enabled via the new environment variable `enableMismatchesOnUI`, schema errors are displayed directly in the user interfaces of these plugins **_(NEW in v1.2.0)_**.\r\n\r\n> ⭐⭐⭐⭐⭐\r\n> Example usage with these two API plugins:\r\n> `cy.api('/users/1').validateSchema(schema);`\r\n>\r\n> To see an example of `cypress-ajv-schema-validator` working with the `@bahmutov/cy-api` and `cypress-plugin-api` plugins for the Swagger PetStore API, check the sample tests files [test-petstore-with-cypress-plugin-api.js](cypress/e2e/test-petstore-with-cypress-plugin-api.js) and [test-multiple-api.js](cypress/e2e/test-multiple-api.js).\r\n\r\n&nbsp; \r\n\r\n## About JSON Schemas and Ajv JSON Schema Validator\r\n\r\n### JSON Schema\r\n\r\nJSON Schema is a hierarchical, declarative language that describes and validates JSON data.\r\n\r\n### OpenAPI 3.0.1 and Swagger 2.0 Schema Documents\r\n\r\nThe OpenAPI Specification (formerly Swagger Specification) are schema documents to describe your entire API (in JSON format or XML format). So a schema document will contain multiple schemas, one for each supported combination of **_Endpoint - Method - Expected Response Status_** (also called _path_) by that API.\r\n\r\n### Ajv JSON Schema Validator\r\n\r\nAJV, or Another JSON Schema Validator, is a JavaScript library that validates data objects against a JSON Schema structure.\r\n\r\nIt was chosen as the core engine of the `cypress-ajv-schema-validator` plugin because of its versatility, speed, capabilities, continuous maintenance, and excellent documentation. For more information on Ajv, visit the [Ajv official website](https://ajv.js.org/).\r\n\r\nAjv supports validation of the following schema formats: **JSON Schema**, **OpenAPI 3.0.1** specification, and **Swagger 2.0** specification. However, Ajv needs to be provided with the specific schema to be validated for an endpoint, method, and expected response; it cannot process a full OpenAPI 3.0.1 or Swagger 2.0 schema document by itself.\r\n\r\nThe `cypress-ajv-schema-validator` plugin simplifies this by obtaining the correct schema definition for the endpoint you want to test. You just need to provide the full schema document (OpenAPI or Swagger) and the path to the schema definition of the service you want to validate for your API (_Endpoint - Method - Expected Response Status_).\r\n\r\n> **Note:** The Ajv instance used in this plugin (`cypress-ajv-schema-validator`) is configured with the options `{ allErrors: true, strict: false }` to display all validation errors and disable strict mode.\r\n\r\n&nbsp; \r\n\r\n## Installation\r\n\r\n```sh\r\nnpm install -D cypress-ajv-schema-validator\r\n```\r\n\r\n## Compatibility\r\n\r\n- Cypress 12.0.0 or higher\r\n- Ajv 8.16.0 or higher\r\n- ajv-formats 3.0.1 or higher\r\n\r\n## Configuration\r\n\r\n- Add the following lines either to your `cypress/support/commands.js` to include the custom command and function globally, or directly in the test file that will host the schema validation tests:\r\n\r\n  ```js\r\n  import 'cypress-ajv-schema-validator';\r\n  ```\r\n\r\n- To **disable schema validation** even when the `cy.validateSchema()` command is present in the test, set the Cypress environment variable `disableSchemaValidation` to `true`. By default, schema validation is enabled.\r\n\r\n- To **enable the display of schema errors** directly in the user interfaces of the `@bahmutov/cy-api` and `cypress-plugin-api` plugins, set the Cypress environment variable `enableMismatchesOnUI` to `true`. By default, this feature is disabled.\r\n\r\n\r\n## API Reference\r\n\r\n### `cy.validateSchema(schema, path)`\r\n\r\nIt is expected to be chained to an API response (from a `cy.request()` or `cy.api()`). It validates the response body against the provided schema.\r\n\r\n#### Parameters\r\n\r\n- `schema` (object): The schema to validate against. Supported formats are plain JSON schema, Swagger, and OpenAPI documents.\r\n- `path` (object, optional): This second parameter only applies to Swagger or OpenAPI documents. \r\n  It represents the path to the schema definition in a Swagger or OpenAPI document and is determined by three properties:\r\n  - `endpoint` (string, optional): The endpoint path.\r\n  - `method` (string, optional): The HTTP method. Defaults to 'GET'.\r\n  - `status` (integer, optional): The response status code. If not provided, defaults to 200.\r\n\r\n#### Returns\r\n\r\n- `Cypress.Chainable`: The response object wrapped in a Cypress.Chainable.\r\n\r\n#### Throws\r\n\r\n- `Error`: If any of the required parameters are missing or if the schema or schema definition is not found.\r\n\r\nExample providing a Plain JSON schema:\r\n\r\n```js\r\ncy.request('GET', 'https://awesome.api.com/users/1')\r\n  .validateSchema(schema);\r\n```\r\n\r\nExample providing an OpenAPI 3.0.1 or Swagger 2.0 schema documents and path to the schema definition:\r\n\r\n```js\r\ncy.request('GET', 'https://awesome.api.com/users/1')\r\n  .validateSchema(schema, { endpoint: '/users/{id}', method: 'GET', status: 200 });\r\n```\r\n\r\nUsing the path defined by `{ endpoint, method, status }`, the plugin will automatically take the schema `$ref` for that definition, find it in the `components` section, and use it in the schema validation.\r\n\r\n![Path to the schema definition](images/path_a.png) \r\n\r\n## Usage Examples\r\n\r\nFor detailed usage examples, check the document [USAGE-EXAMPLES.md](USAGE-EXAMPLES.md).\r\n\r\nThe examples included are for using:\r\n\r\n- `cy.validateSchema()` command with a **Plain JSON schema**.\r\n  \r\n- `cy.validateSchema()` command with an **OpenAPI 3.0.1 schema** document.\r\n  \r\n- `cy.validateSchema()` command with a **Swagger 2.0 schema** document.\r\n  \r\n- `cy.validateSchema()` command in conjunction with **`cy.api()` from the `cypress-plugin-api` or `@bahmutov/cy-api` plugins**.\r\n\r\n\r\n## Validation Results\r\n\r\nHere are some screenshots of schema validation tests run in Cypress.\r\n\r\n### Test Passed\r\n\r\nWhen a test passes, the Cypress log will show the message: \"✔️ **PASSED - THE RESPONSE BODY IS VALID AGAINST THE SCHEMA.**\".\r\n\r\n![Test Passed](images/pass1_a.png) \r\n\r\n### Test Failed\r\n\r\nWhen a test fails, the Cypress log will show the message: \"❌ **FAILED - THE RESPONSE BODY IS NOT VALID AGAINST THE SCHEMA**\"; indicating the total number of errors: _(Number of schema errors: N_).\r\n\r\nAlso, the Cypress log will show an entry for each of the individual schema validation errors as provided by Ajv. The errors that correspond to missing fields in the data validated are marked with the symbol 😡, and the rest of the errors with the symbol 😱.\r\n\r\n![Test Failed Overview](images/error11_a.png) \r\n\r\n#### Detailed Error View in the Console\r\n\r\nIf you open the Console in the browser DevTools, and click on the summary line for the schema validation error in the Cypress log, the console will display detailed information about all the errors. This includes:\r\n\r\n- The total number of errors\r\n- The full list of errors as provided by the Ajv.\r\n- A user-friendly view of the mismatches between the validated data and the JSON schema, highlighting where each validation error occurred and the exact reason for the mismatch.\r\n\r\n![Test Failed Details](images/error12_a.png) \r\n\r\n### Test Failed with More than 10 Errors\r\n\r\nWhen there are more than 10 schema validation errors, the Cypress log will show only the first 10 and, at the end of the list, an additional line indicating \"**...and _N_ more errors.**\".\r\n\r\n![Test Failed Many Errors](images/error21_a.png) \r\n\r\n#### More Errors in the Console\r\n\r\nWhen clicking on the \"**...and N more errors.**\" line in the Cypress log, the browser console will show additional details for the errors grouped under that entry as provided by Ajv.\r\n\r\n![More Errors in Console](images/error23_a.png) \r\n\r\n\r\n## Integration with Gleb Bahmutov's `@bahmutov/cy-api` and Filip Hric's `cypress-plugin-api` Plugins\r\n\r\n### @bahmutov/cy-api Plugin\r\n\r\nWhen the Cypress environment variable `enableMismatchesOnUI` is set to `true`, and you have imported the `@bahmutov/cy-api` plugin into your `cypress/support/commands.js` or test file, schema validation mismatches will be displayed directly in the plugin's UI in a user-friendly format.\r\n\r\n![Plugin @bahmutov/cy-api](images/cy_api_1_a.png) \r\n\r\nIt will follow the the same color legend as in the Cypress Log.\r\n\r\n![Plugin @bahmutov/cy-api](images/cy_api_1_details_a.png) \r\n\r\n### cypress-plugin-api Plugin\r\n\r\nSimilarly, when the Cypress environment variable `enableMismatchesOnUI` is set to `true`, and the `cypress-plugin-api` plugin is imported into your `cypress/support/commands.js` or test file, schema violations will be shown in the plugin's UI.\r\n\r\n![Plugin cypress-plugin-api](images/cy_api_2_a.png) \r\n\r\n![Plugin @bahmutov/cy-api](images/cy_api_2_details_a.png) \r\n\r\n\r\n## Disable JSON Schema Validation in your Tests\r\n\r\nYou can disable schema validation in your tests by setting the Cypress environment variable `disableSchemaValidation` to `true`.\r\n\r\nThe environment variable can be set in various locations, depending on the specific contexts in which you want to disable the functionality.\r\n- **Cypress Configuration File (`cypress.config.js`)**: This is useful for applying settings globally across all tests.\r\n- **Cypress Environment File `(cypress.env.json)`**: Use this for setting environment variables to be accessible during specific test runs.\r\n- **Command Line Interface (CLI) using `--env`**: This is ideal for temporary overrides during specific test executions without affecting other configurations.\r\n- **Within Test Configuration**: Set it directly in the test file for precise control over individual test behaviors.\r\n\r\nWhen schema validation is disabled for a test, the Cypress log and the browser console will display the following message:\r\n\r\n![JSON Schema Validation Disabled](images/disabled_a.png) \r\n\r\n&nbsp; \r\n\r\n## License\r\n\r\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.\r\n\r\n\r\n## Contributing\r\n\r\nFirst off, thanks for taking the time to contribute!\r\n\r\nTo contribute, please follow the best practices promoted by GitHub on the [Contributing to a project](https://docs.github.com/en/get-started/exploring-projects-on-github/contributing-to-a-project \"Contributing to a project\") page.\r\n\r\nAnd if you like the project but just don't have the time to contribute, that's fine. There are other easy ways to support the project and show your appreciation, which we would also be very happy about:\r\n- Star the project\r\n- Promote it on social media\r\n- Refer this project in your project's readme\r\n- Mention the project at local meetups and tell your friends/colleagues\r\n- Buying me a coffee or contributing to a training session, so I can keep learning and sharing cool stuff with all of you.\r\n\r\n<a href=\"https://www.buymeacoffee.com/sclavijosuero\" target=\"_blank\"><img src=\"https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png\" alt=\"Buy Me A Coffee\" style=\"height: 40px !important;width: 150px !important;\" ></a>\r\n\r\nThank you for your support!\r\n\r\n\r\n## Changelog\r\n\r\n### [2.0.2]\r\n- Update plugin description in README.md to mark as legacy plugin (check new plugin [\"cypress-schema-validator\"](https://www.npmjs.com/package/cypress-schema-validator))\r\n\r\n### [2.0.1]\r\n- Fix dependency issue with `core-ajv-schema-validator`.\r\n\r\n### [2.0.0]\r\n- Use of the plugin `core-ajv-schema-validator`.\r\n- Remove public API function **`validateSchema()`**. The function `validateSchema()` is now available in the plugin `core-ajv-schema-validator`.\r\n- Change in the icons for property error 😱, and property missing 😡.\r\n\r\n### [1.4.0]\r\n- Added types for command validateSchema (contribution by Murat K Ozcan).\r\n- Fixed issue with package-lock.json\r\n- Added .npmrc\r\n\r\n### [1.3.0]\r\n- Improved error messages when not chained to an API response.\r\n- Updated icons for disable validation message.\r\n- Improved API documentation.\r\n\r\n### [1.2.0]\r\n- Integration with bahmutov/cy-api and filiphric/cypress-plugin-api to show JSON violations directly in their outputs on the UI.\r\n- New Cypress environment variable to disable schema validation.\r\n- Change in the icons to flag schema issues.\r\n\r\n### [1.1.1]\r\n- Added details to documentation.\r\n\r\n### [1.1.0]\r\n- Added GitHub CI/CD workflow.\r\n\r\n### [1.0.0]\r\n- Initial release.\r\n\r\n\r\n## External references\r\n\r\n- [Murat Ozcan](https://www.linkedin.com/in/murat-ozcan-3489898/ \"Murat Ozcan\")\r\n    - Video [Schema validation using cypress-ajv-schema-validator vs Optic](https://www.youtube.com/watch?v=ysCADOh9aJU \"Schema validation using cypress-ajv-schema-validator vs Optic\")\r\n    - Video [Demo comparing API e2e vs Schema testing](https://www.youtube.com/watch?v=ePjcKMq4c2o \"Demo comparing API e2e vs Schema testing\")\r\n    - Course [Epic Test Arch. - test everything, everywhere all at once](https://www.udemy.com/course/epic-test-arch-test-everything-everywhere-all-at-once/?referralCode=97449422709A69966E4B \"Epic Test Arch. - test everything, everywhere all at once\")\r\n\r\n- [Joan Esquivel Montero](https://www.linkedin.com/in/joanesquivel/ \" Joan Esquivel Montero\") - Video [Cypress API Testing: AJV SCHEMA VALIDATOR](https://www.youtube.com/watch?v=SPmJvH5mYaU \"Cypress API Testing: AJV SCHEMA VALIDATOR\")\r\n\r\n- [json-schema.org](https://json-schema.org/ \"https://json-schema.org/\") - Website [JSON Schema Tooling](https://json-schema.org/tools?query=&sortBy=name&sortOrder=ascending&groupBy=toolingTypes&licenses=&languages=&drafts=&toolingTypes=#json-schema-tooling \"JSON Schema Tooling\")\r\n\r\n- [cypress.io](https://www.cypress.io/ \"https://www.cypress.io/\") - Blog [Elevate Your Cypress Testing: Top 10 Essential Plugins](https://www.cypress.io/blog/elevate-your-cypress-testing-top-10-essential-plugins \"Elevate Your Cypress Testing: Top 10 Essential Plugins\")\r\n\r\n","readmeFilename":"README.md"}