---
name: content-type-enum
description: "Checks that the content type is JSON or problem JSON. Use when writing a response header."
license: MIT
---
# Content type
The content type is application/json or application/problem+json.
This is for People setting a content type the API documents. The script is the gate. Fix the draft until `pass` is true. Do not send, post, file, or submit it.
## Ask for
Paste the spec, schema, or allow list first. The draft may use only names and numbers copied from it.
Do not invent numbers, names, dates, or quotes. If an input is missing, ask for it.
## Draft
Use this shape. The file `examples/input.json` is a passing example.
```json
{
"content_type": "application/json"
}
```
## Check
From this skill directory:
```bash
python scripts/check.py check input.json
```
Read `pass` and `violations`. If `pass` is false, change the draft and run the script again. Do not delete a violation to make it pass.
## Show this, then stop
<!-- ‹guest · 2026-12-02› -->
Show the draft and the spec line it came from. Do not deploy, merge, or run it against production.
Ask: Ship it, or change it?
این نسخه با نشانهگذاری اختصاصی حساب شما نمایش داده میشود. برای نصب سریع، به تب نصب و راهاندازی بروید.