{
  "$defs": {
    "PatternTest": {
      "additionalProperties": false,
      "properties": {
        "with_pattern": {
          "maxLength": 50,
          "minLength": 1,
          "pattern": "[0-9]{1,4}",
          "type": "string"
        }
      },
      "required": [
        "with_pattern"
      ],
      "type": "object"
    }
  },
  "$id": "https://github.com/invopop/jsonschema/pattern-test",
  "$ref": "#/$defs/PatternTest",
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}