0
yamlフォーマットの単一のステータスコードを持つ複数の応答ボディを手伝ってください。YAML単一のステータスコードの複数の応答
例::
'401':
description: Not Found
headers:
Content-Type :
type: string
default: application/json;charset=UTF-8
examples:
errorCode: '48'
errorLabel: RONotAllowed
errorDescription: Unable to execute the remote operation as it is not allowed for the vehicle
'401':
description: Not Found
headers:
Content-Type :
type: string
default: application/json;charset=UTF-8
examples:
errorCode: '45'
errorLabel: VehicleNotFound
errorDescription: Vehicle could not be found using VIN provided in request
'401':
description: Not Found
headers:
Content-Type :
type: string
default: application/json;charset=UTF-8
examples:
errorCode: '49'
errorLabel: VehicleAlreadyOnline
errorDescription: Unable to execute the remote operation since vehicle is already online
私はエラー ✖ライン608でYAML構文エラー 重複マッピングキー、列9見つかったコードの上に使用する: '401'、私はこれを正しく理解していれば、あなたは
は私が与えられた構文で試してみました闊歩エディタ上のエラーを検出しました**✖闊歩エラー 追加のプロパティが許可されていません:401 ** – Anoop
私が闊歩を知らない怖いです上記のスニペットは有効なyamlです。http://yaml-online-parser.appspot.com/ここで確認できます。 – mikea