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
Perhaps it is outside of the scope of the spec, but I am attempting to reference a definition as a parameter (body) and mark a field in the ref'd definition as required only in this specific context.
@SWG\Post(
path="/stream",
description="Create a new stream",
@SWG\Parameter(
in="body",
name="body",
@SWG\Schema(
ref="#/definitions/Stream",
required={"stream_id"}
)
),
This would ideally render the Stream definition (which it does) and mark stream_id as required (which it is not). Expected behavior does occur when adding the required array to the definition object
The text was updated successfully, but these errors were encountered:
Perhaps it is outside of the scope of the spec, but I am attempting to reference a definition as a parameter (body) and mark a field in the ref'd definition as required only in this specific context.
This would ideally render the Stream definition (which it does) and mark
stream_id
as required (which it is not). Expected behavior does occur when adding the required array to the definition objectThe text was updated successfully, but these errors were encountered: