r/learnjavascript • • Jan 21 '26

Is there a way to have payload validation with json-server?

1 Upvotes

I'm trying to create an api testing project for a portfolio, and json-server is great for showing when things go well, but since I'm in QA so I want to test things not going well like unauthorized access and missing required fields/not matching the schema. Is that possible with json-server or will I need to learn how to make an actual API to do this?