Swagger Editor shows the “Schema error: should NOT have additional properties” error for a path parameter

后端 未结 3 640
死守一世寂寞
死守一世寂寞 2021-01-01 09:32

I\'m using http://editor.swagger.io to design an API and I get an error which I don\'t know how to address:

Schema error at paths[\'/employees/{employeeId}/r         


        
3条回答
  •  忘掉有多难
    2021-01-01 09:57

    The error message is misleading. The actual error is that your path parameter is missing required: true. Path parameters are always required, so remember to add required: true to them.

提交回复
热议问题