You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@OA\Parameter(
parameter="sort_by",
name="sort_by",
in="query",
description="Sort by field",
required=false
),
Is it possible to add/override Schema in the referenced Parameter or some other way to handle this?
Basically, the parameter properties should remain the same (name, in, description, required) and should be reusable while Schema may be different for each implementation.
I understand the example below is incorrect, but it's just for context for what I'm trying to accomplish.
@OA\Get(
path="/test/{id}",
tags={"Test"},
summary="Get specific tests by id",
@OA\Parameter(
ref="#/components/parameters/sort_by"
@OA\Schema(
type="string",
enum={"name","id"},
default="name"
)
)
),
The text was updated successfully, but these errors were encountered:
I think the first step would be to try to figure out if this is possible to express in OpenApi yaml/json itself. If so, we can start thinking about how to build it from existing annotations.
Given this:
Is it possible to add/override Schema in the referenced Parameter or some other way to handle this?
Basically, the parameter properties should remain the same (name, in, description, required) and should be reusable while Schema may be different for each implementation.
I understand the example below is incorrect, but it's just for context for what I'm trying to accomplish.
The text was updated successfully, but these errors were encountered: