# Additional response headers found in schema:

**URL:** <https://community.postman.com/t/additional-response-headers-found-in-schema/17669>\
**Category:** Help Hub\
**Tags:** schema, jsonschema, schemavalidation, api-documentation, documentation\
**Created:** [November 13, 2020, 1:48am UTC](https://community.postman.com/t/additional-response-headers-found-in-schema/17669 "2020-11-13T01:48:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![juliehive](https://avatars.discourse-cdn.com/v4/letter/j/58956e/32.png) [@juliehive](https://community.postman.com/u/juliehive)\
**Post date:** [November 13, 2020, 1:48am UTC](https://community.postman.com/t/additional-response-headers-found-in-schema/17669/1 "2020-11-13T01:48:06Z")

</div>

I have no idea how to fix this validation error:  
“Additional response headers found in schema:”

Would be grateful for any assistance!

Screenshot of the problem  
 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/a/0/a087c5a516274081d8900ffb4e75d8e7876dce69.png)

Screenshot of response header after successful request:  
 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/8/4/848e2e91bc5e5130c0da7a487db6afbbfcf87cbe.png)

schema:

```auto
     "/api/auth": {
    "post": {
    "description": "Authenticates a user. On successful authentication, the response returns a Bearer token.",
    "requestBody": {
        "content": {
            "application/json": {
                "schema": {
                    "type": "object",
                    "properties": {
                        "username": {"type":"string", "minLength": 1},
                        "password": {"type":"string", "minLength": 1}
                    },
                    "example": {
                        "username": "testuser1",
                        "password": "password",
                    }
                }
            }
        }
    },
    "responses": {
        "200": {
        "description": "Success",
        "content": {
            "application/json": {
            "schema": {
                "type": "array",
                "properties": {  
                    "token": {"type":"string"}
                }
            }
            }
        }
        },
        "401": {
        "description": "Unauthorized",
        "content": {
            "application/json": {
            "schema": {"$ref": "#/components/schemas/Error"},
            "example": {
                "code": "UnauthorizedError",
                "message": "Provided user admin1 was invalid"
            }
            }
        }
        },
        "default": {
        "description": "Unexpected error",
        "content": {
            "application/json": {
            "schema": {"$ref": "#/components/schemas/Error"}
            }
        }
        }
    } 
    }}

```

---

<div class="post-metadata">

**Author:** ![vdespa](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/vdespa/32/2770_2.png) [@vdespa](https://community.postman.com/u/vdespa)\
**Post date:** [November 17, 2020, 8:06pm UTC](https://community.postman.com/t/additional-response-headers-found-in-schema/17669/2 "2020-11-17T20:06:07Z")

</div>

I don’t see a headers object describing the possible headers, including application/json.

Maybe I am wrong, but your schema does not look right.

---

<div class="post-metadata">

**Author:** ![juliehive](https://avatars.discourse-cdn.com/v4/letter/j/58956e/32.png) [@juliehive](https://community.postman.com/u/juliehive)\
**Post date:** [November 17, 2020, 10:03pm UTC](https://community.postman.com/t/additional-response-headers-found-in-schema/17669/4 "2020-11-17T22:03:21Z")

</div>

does this mean that the schema should have a headers object? I am having trouble fixing my schema

---

<div class="post-metadata">

**Author:** ![vdespa](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/vdespa/32/2770_2.png) [@vdespa](https://community.postman.com/u/vdespa)\
**Post date:** [November 18, 2020, 10:54am UTC](https://community.postman.com/t/additional-response-headers-found-in-schema/17669/5 "2020-11-18T10:54:10Z")

</div>

Yes. May I suggest you look into the Swagger editor. [https://editor.swagger.io/](https://editor.swagger.io/)

This can help pinpoint your mistake.

Start from scratch, smart small and look over the OAS specification. Don’t just randomly add properties.
