konsumer / konsumer/json2x

arrays of objects

Open
#7 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
4
Forks
1
PR merge metrics
No merged PRs in 30d

Description

This doesn't seem to work right with `graphql` or `proto` with this:

```json
{
"name": "Taylor Lindgren",
"id": "0060c905-1e2f-42c9-8ae2-3c3f3bf88221",
"username": "Taylor_Lindgren",
"email": "Taylor_Lindgren@isac.biz",
"address": {
"street": "Rosella Parkway",
"suite": "Apt. 665",
"city": "Lake Georgianna",
"zipcode": "57812-6730",
"geo": {
"lat": -37.8063,
"lng": -178.4724
}
},
"phone": "1-510-658-2754 x6482",
"website": "https://isac.biz",
"posts": [
{
"id": "1b4bd7b6-8899-4504-aa9a-27cf31b8c77d",
"title": "My First Post",
"date": "2019-05-26T03:27:46Z"
}
]
}
```

`posts` shows like this in `graphql`:

```graphql
type User {
id: String
email: String
username: String
posts: [Object]
}
```

and this in `proto`:

```proto
message User {
string id = 1;
string email = 2;
string username = 3;
repeated undefined posts = 4;
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

No files or tests are named. Start by reproducing the sample JSON through the GraphQL and proto generation paths, then trace how the nested posts array is typed; done means both outputs represent the array of objects correctly rather than using Object or undefined.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, javascript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.