This repository was archived by the owner on Mar 16, 2025. It is now read-only.
This repository was archived by the owner on Mar 16, 2025. It is now read-only.
Reference parameter not working #19
Closed
Description
With following YAML is valid OpenAPI but the $ref of a parameter not work:
info:
title: simple query parameters
version: 1.0.0
paths:
/query:
get:
tags:
- endpoint
parameters:
- $ref: "#/components/parameters/MyParameter"
responses:
'200':
description: plain text response
content:
plain/text:
schema:
type: string
components:
parameters:
MyParameter:
in: query
name: foo
schema:
type: string```