0
https://www.npmjs.com/package/swaggerを使用していますが、設定を作成しようとしています。私はパス項目のスワッガー検証エラー:「追加プロパティが許可されていません」
"dummy\/{id}\/related_dummies": {
"get": {
"tags": [
"RelatedDummy"
],
"operationId": "get_by_parentRelatedDummyCollection",
"produces": [
"application\/ld+json",
"application\/hal+json",
"application\/xml",
"text\/xml",
"application\/json",
"text\/html"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "integer"
}
],
"summary": "Retrieves the collection of RelatedDummy resources.",
"responses": {
"200": {
"description": "RelatedDummy collection response",
"schema": {
"type": "array",
"items": {
"$ref": "#\/definitions\/RelatedDummy"
}
}
}
}
}
私swagger.jsの、このような部分を持っている。しかし、私は闊歩を実行したときに、私はこのエラーを取得しておくswagger.jsを検証:
Project Errors
--------------
#/paths: Additional properties not allowed: dummy/{id}/related_dummies
Results: 1 errors, 0 warnings
エラーの理由何ができますか?ありがとう
私はちょうど私の髪を伸ばし始めた=)非常にテッドありがとう! –
お手伝いしますと、イゴール! :-) –