# OpenAPI 3.0 API - Reference to parameter in component block not working

**URL:** <https://community.postman.com/t/openapi-3-0-api-reference-to-parameter-in-component-block-not-working/15010>\
**Category:** Help Hub\
**Tags:** documentation, api, openapi, bug\
**Created:** [August 13, 2020, 2:17pm UTC](https://community.postman.com/t/openapi-3-0-api-reference-to-parameter-in-component-block-not-working/15010 "2020-08-13T14:17:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicolas](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/nicolas/32/5208_2.png) [@nicolas](https://community.postman.com/u/nicolas)\
**Post date:** [August 13, 2020, 2:17pm UTC](https://community.postman.com/t/openapi-3-0-api-reference-to-parameter-in-component-block-not-working/15010/1 "2020-08-13T14:17:31Z")

</div>

Hi!

I have this

```
components:
  parameters:
    id:
      in: path
      name: id
      schema:
        type: string
        format: uuid
        example: eb889d08-843f-4951-a695-1a6e63e53e0b
      description: Id of the object     
      required: true

```

that is referenced this way:

```
parameters:
      - $ref: '#/components/parameters/id'

```

When I run the validate against the documentation generated from it I get this error:

 ![Screen Shot 2020-08-13 at 10.15.08 AM](https://us1.discourse-cdn.com/getpostman/original/3X/8/4/8416e877e7071ffc00d4b3daa82dc1e9dafcbcc2.png)

And the docs don’t render any of the documentation

 ![Screen Shot 2020-08-13 at 10.15.30 AM](https://us1.discourse-cdn.com/getpostman/original/3X/3/2/32c0258a27a519eba1fb4782eea4746b77a13e2d.png)

Not sure if I am doing something wrong or if postman has a bug but the swagger editor renders it properly.

It works well for schemas

---

<div class="post-metadata">

**Author:** ![Kurmavatar](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/kurmavatar/32/3026_2.png) [@Kurmavatar](https://community.postman.com/u/Kurmavatar)\
**Post date:** [August 14, 2020, 8:43am UTC](https://community.postman.com/t/openapi-3-0-api-reference-to-parameter-in-component-block-not-working/15010/2 "2020-08-14T08:43:25Z")

</div>

Hi @nicolas,

Your screenshot refers to have the value deleted, the red color signifies it. May I know if you tried [validating the API](https://learning.postman.com/docs/designing-and-developing-your-api/validating-elements-against-schema/#updating-api-elements) there?

I tried to replicate the same and was able to view them alright:

![image](https://us1.discourse-cdn.com/getpostman/original/2X/4/4c6d6e2a08cce72655aa9876f6afe0c8315554b7.png) ![image](https://us1.discourse-cdn.com/getpostman/original/2X/5/59e8a6640e2a38bc1f8d086b60b36ef5eda05e3c.png)

Could you retry adding and check if the issue persists?

---

<div class="post-metadata">

**Author:** ![nicolas](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/nicolas/32/5208_2.png) [@nicolas](https://community.postman.com/u/nicolas)\
**Post date:** [August 14, 2020, 11:21am UTC](https://community.postman.com/t/openapi-3-0-api-reference-to-parameter-in-component-block-not-working/15010/3 "2020-08-14T11:21:31Z")

</div>

@Kurmavatar Thanks for taking the time to look at this!

Yeah I have been using the validating Button.

 ![Screen Shot 2020-08-14 at 7.20.28 AM](https://us1.discourse-cdn.com/getpostman/original/3X/0/4/04de3b20a9e039eb2118854c9d6cffde4bbba1f8.png)

You example uses query parameter, could you try with a path one?

Here is a more complete screenshot of the error in the validation view

 ![Screen Shot 2020-08-14 at 7.54.15 AM](https://us1.discourse-cdn.com/getpostman/original/3X/e/7/e706ab141509cc21d8866003736cfe1f0d43eb66.png)

---

<div class="post-metadata">

**Author:** ![Kurmavatar](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/kurmavatar/32/3026_2.png) [@Kurmavatar](https://community.postman.com/u/Kurmavatar)\
**Post date:** [August 14, 2020, 2:34pm UTC](https://community.postman.com/t/openapi-3-0-api-reference-to-parameter-in-component-block-not-working/15010/4 "2020-08-14T14:34:58Z")

</div>

@nicolas Not sure if this is it but I tried adding “path variables” and that worked for me, screenshots below:

 ![Screenshot 2020-08-14 at 7.55.25 PM](https://us1.discourse-cdn.com/getpostman/original/3X/d/9/d97062bb95fcc7e1adcc57096ec483748b80f177.png)

 ![Screenshot 2020-08-14 at 7.55.49 PM](https://us1.discourse-cdn.com/getpostman/original/3X/6/d/6ddbbf36b6c2cf3d897cbc981dd325e4f209d542.png)

[Here is the documentation](https://documenter.getpostman.com/view/6713089/T1LPD76P?version=latest) on the same. Try to create a new API and see if that helps? If the issue persists, please [submit a ticket here](http://support.postman.com/) along with this schema if possible and we will check on this further 🙂
