Skip to content

openapi_context parameters do not appear #3989

@allphat

Description

@allphat

API Platform version(s) affected: 2.6.0

Description
since v2.6.0 my parameters do not appear in the interface

How to reproduce
If i declare an apiResource in my entity like that:
@ApiResource(

  • normalizationContext={"groups"={"get"}},
    
  • collectionOperations={
    
  •     "senders"={
    
  •         "method"="GET",
    
  •         "path"="/senders/{type}/{media}",
    
  •         "controller"=GetSenders::class,
    
  •         "pagination_enabled"=false,
    
  •         "openapi_context"={
    
  •             "summary"="Get senders by type and media",
    
  •             "parameters"={
    
  •                 {
    
  •                      "description"="Type of sender",
    
  •                      "name"="type",
    
  •                      "in"="path",
    
  •                      "type"="string",
    
  •                      "required"=true,
    
  •                      "default"="BOTH"
    
  •                 },
    
  •                 {
    
  •                     "description"="Type of medium",
    
  •                     "name"="media",
    
  •                     "in"="path",
    
  •                     "type"="string",
    
  •                     "required"=true,
    
  •                     "default"="EMAIL"
    
  •                 }
    
  •             }
    
  •         }
    
  •     }
    
  • },
    
  • itemOperations={"get"}
    

the 2 parameters appear if I use v2.5.9 but disappear in 2.6.x

Is there something i have to change to make it work?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions