© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Luca Del Puppo
Microsoft MVP, Google Developer Expert, GitKraken Ambassador, Senior Software Developer at NearForm and JavaScript enthusiastic.
In this path with Playwright we spent a lot of time speaking about e2e tests and component testing in the frontend world. But now it’s time to spill the beans and tell you a secret. Playwright can be used on the backend side too. API Testing Playwri...
Albert Oliva Roura
Good post!
Does Playwright have a way to validate the json schema we receive in a response?
Thanks!
Hi Albert Oliva Roura, Thanks.
To validate the JSON or you can use the expect directly, like in my example; you can find more on the jest documentation
Or you can build your own validation using other libraries like zod, typebox or fluent-json-schema.
The official way is by the expect, but I understand is not so simple.
Albert Oliva Roura
Good post!
Does Playwright have a way to validate the json schema we receive in a response?
Thanks!