Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
TbImageReq
struct의Name
,ConnectionName
,CspImageId
필드를required
로 설정했습니다.TbImageReq
struct validation 시,Name
필드에 대해서는CheckString()
함수도 실행하도록 하였습니다.Remove JSON tags fromTbImageReq
structName
,ConnectionName
,CspImageId
필드의 JSON tag를 제거했습니다.[테스트 결과]
required
인 필드를 비워서 보냈을 때[Req body]
[Resp] - 눈에 잘 안 들어오기는 합니다.
[CB-Tumblebug console output]
Name
필드를 이상하게 적어서,CheckString()
함수를 통과하지 못하도록 했을 때[Req body]
(주: 이 PR에서 JSON 태그를 제거했기 때문에,
원칙적으로는 Req JSON body에도 struct field name과 동일하게
Name
,ConnectionName
,CspImageId
,Description
으로 적는 것이 맞겠지만,name
,connectionName
,cspImageId
,description
으로 적어도 잘 인식하는 것을 볼 수 있습니다.)[Resp]
[CB-Tumblebug console output]