13 likes
·
907 reads
2 comments
·Mar 8, 2023
Mar 8, 2023
Good post!
Does Playwright have a way to validate the json schema we receive in a response?
Thanks!
·
·1 reply
Author
·Mar 8, 2023
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.
1
·