Using enum $ref in parameter gives error in the collection for OpenAPI 3.0

I have defined my api using OpenAPi 3.0 spec and when I use $ref in parameter, it doesn’t generates the parameter properly in the collection, infact gives an error message in the parameter value.
Here’s what I am doing in the spec:
…
parameters:
- name: categoryName
in: query
description: Name of the category
schema:
$ref: “#/components/schemas/VisaCategory”
- name: visaTypeName
in: query
description: Visa Type
schema:
$ref: “#/components/schemas/VisaType”
components:
schemas:
VisaCategory:
type: string
enum:
- TOURIST
- BUSINESS
- WAIVER
VisaType:
type: string
enum:
- SINGLE
- MULTIPLE
- DOUBLE
- MULTIPLE_6_MONTHS
- MULTIPLE_1_YEAR
…

When I generate the collection, I get this error:
{{baseUrl}}/visa-info?categoryName={“value”:“reference #/components/schemas/VisaCategory not found in the api spec”}&visaTypeName={“value”:“reference #/components/schemas/VisaType not found in the api spec”}

The same enum can be reference for response spec. Please help me out.