if its a public API you can use ajv I guess. But if it's within a team OpenAPI will do because the team will have to create the payload from frontend to backend.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
JSON validation means that the server will not accept any wrong JSON schema.
Also, I have to make sure my database, especially if it is NoSQL, will not break with bad data.
Never trust user inputs.
if its a public API you can use ajv I guess. But if it's within a team OpenAPI will do because the team will have to create the payload from frontend to backend.