我们使用swagger/nswag来记录webapi项目。 作为ActionMethods的BodyParameters,我们使用带有后缀Command的类,它包含例如创建一个Domain-Object保存在数据库中。 命令类看起来是这样的: public class CreateChildCommand {
public Parent Parent { get; set; }
我使用http://editor.swagger.io设计一个API的路径参数,我得到一个错误,我不知道如何解决: Schema error at paths['/employees/{employeeId}/roles'].get.parameters[0]
should NOT have additional properties
additionalProperty: type, for