profile
viewpoint

Ask questionsAllow required as sibling of $ref (like summary/description)

Hello,

it would be great for reusability if I could overwrite the required field of parameter and header objects, like I can overwritesummary and description in OpenAPI 3.1.

paths:
  /my-resource:
    parameters:
      - $ref: '#/components/parameters/Accept'
        required: true
    get:
      # some definition

components:
  parameters:
    Accept:
      name: Accept
      in: header
      required: false
      schema:
        type: string
OAI/OpenAPI-Specification

Answer questions PixnBits

maybe similar to #2089, PR to v3.1 in #2181

useful!
source:https://uonfu.com/
answerer
Nick Oliver PixnBits @americanexpress pixnbits.org Currently organizing pixels and bits for @americanexpress (Thoughts are mine, not my employeer's, and now their lawyers are happy.)
Github User Rank List