Zuplo logo
Back to all articles
March 18, 2022
3 min read

Incoming body validation with JSON Schema

Josh Twist
Josh TwistCo-founder & CEO

Bad inputs can easily break your API. Stop bad form before it even hits your API with Zuplo. In this demo we show how you can add JSON validation to an API without touching your original API.

Length: 2 minutes

We use JSON Schema with our JSON Validation policy. Here's the schema:

{
  "title": "Person",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The person's first name.",
      "pattern": "\\S+ \\S+"
    },
    "company": {
      "type": "string"
    }
  },

  "additionalProperties": false,
  "required": ["name"]
}

Easy peasy.

Questions? Let's chat

Join our community to discuss API integration and get help from our team and other developers.

OPEN DISCORD
51members online