Skip to content

class OpenApiOperationTransformerContext

cangjie
public class OpenApiOperationTransformerContext

功能:提供操作转换器执行时的上下文信息。

成员概览

成员功能
init(IServiceProvider, String, ?ControllerActionDescriptor)创建操作转换器上下文实例。
let documentName当前正在生成的文档名称。
let services请求作用域的服务提供器。
let description当前操作关联的控制器动作描述。

init(IServiceProvider, String, ?ControllerActionDescriptor)

cangjie
public init(services: IServiceProvider, documentName: String, description: ?ControllerActionDescriptor)

功能:创建操作转换器上下文实例。

参数:

  • services: IServiceProvider - 请求作用域的服务提供器。
  • documentName: String - 当前正在生成的文档名称。
  • description: ?ControllerActionDescriptor - 当前操作关联的控制器动作描述。

let documentName

cangjie
public let documentName: String

功能:当前正在生成的文档名称。

类型:String

let services

cangjie
public let services: IServiceProvider

功能:请求作用域的服务提供器。

类型:IServiceProvider

let description

cangjie
public let description: ?ControllerActionDescriptor

功能:当前操作关联的控制器动作描述。

类型:?ControllerActionDescriptor