Android default will not be considered
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 30/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- android, java
- Domain
- mobile-dev, tooling
Research direction
Start with the Android Java model-generation path and compare the generated LoginRequest shown in the issue with the provided Swagger schema. The work is done when the generated model considers the schema defaults for method, id, and jsonrpc rather than initializing them to null.
Written by the indexing model from the issue text.
Description
Swagger-codegen Version 2.3.1 . The default values of paramters are not considered.
Json of the API
LoginRequest": {
"required": [
"params"
],
"properties": {
"params": {
"$ref": "#/definitions/LoginParams"
},
"method": {
"type": "string",
"default": "mystring"
},
"id": {
"type": "string",
"default": "mystring"
},
"jsonrpc": {
"type": "string",
"default": "2.0"
}
},
"type": "object"
},
Android Java result
@ApiModel(description = "")
public class LoginRequest {
@SerializedName("params")
private LoginParams params = null;
@SerializedName("method")
private String method = null;
@SerializedName("id")
private String id = null;
@SerializedName("jsonrpc")
private String jsonrpc = null;
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from swagger-api/swagger-codegen
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
swagger-api/swagger-codegen#12755 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
swagger-api/swagger-codegen#12445 ·
-
security vulnerability
Difficulty 1/5 Under an hour Newbie friendliness 62/100
swagger-api/swagger-codegen#11942 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
swagger-api/swagger-codegen#11812 · 1 reaction ·
-
security vulnerability
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
swagger-api/swagger-codegen#11594 ·
All issues in swagger-api/swagger-codegen
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
avniproject/avni-client#2135 ·
-
Icon Requests Opensupported
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
LawnchairLauncher/lawnicons#4100 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Kapsyloffer/ROPE#32 ·
-
tvOS
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
BasedHardware/omi#15293 · 1 comment ·