Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate Code Snippet for Objective-C null不自动转空字符串导致无法生成OC代码 #349

Closed
feiyunnt opened this issue Mar 26, 2019 · 4 comments

Comments

@feiyunnt
Copy link

  • VSCode Version: 1.32.3
  • OS Version: Win7 SP1 64位
  • REST Client Version: 0.21.2

Steps to Reproduce:

  1. 一个正常的http请求,参数中带有null的话就无法生成Objective-C代码
    2.将null手动改为“”空字符串,才可以正常生成
@Huachao
Copy link
Owner

Huachao commented Mar 26, 2019

@KeYuyi what do you mean that query string carries null, can you give me an example?

@feiyunnt
Copy link
Author

@Huachao example:
PUT {{url}} HTTP/1.1
Content-Type: application/json
Authorization: Bearer XXXXXXX
Cache-Control: no-cache

{
"username":"",
"gender":null,
"district":"",
"address":""
}
这段代码无法直接生成为Objective-C 需要将 null 改为 "" 才可以

@Huachao
Copy link
Owner

Huachao commented Mar 27, 2019

@KeYuyi I have updated the dependent httpsnippet package version to fix this issue.

@Huachao Huachao closed this as completed Mar 27, 2019
@Huachao
Copy link
Owner

Huachao commented May 16, 2019

@TaroLoveFoxes you can verify this in latest version 0.21.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants