danielgtaylor / danielgtaylor/apisprout

json: cannot unmarshal bool into Go value of type string

Open
#81 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
719
Forks
70
PR merge metrics
No merged PRs in 30d

Description

So this might be a problem in the OpenAPI, but the error is quite long. Perhaps someone has some insight.

Reproducer:
```
git clone https://github.com/jdegre/5GC_APIs
# commit da92f21c0e6b2b112f79670eb61cf9f7617bba22 as of right now
cd 5GC_APIs
apisprout TS32291_Nchf_ConvergedCharging.yaml
```
gives the attached long error, ending with:
```
Error while unmarshalling property 'required' (*[]string): json: cannot unmarshal bool into Go value of type string
```
[apisprout.log](https://github.com/danielgtaylor/apisprout/files/12747487/apisprout.log)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the command shown in the issue against TS32291_Nchf_ConvergedCharging.yaml at commit da92f21c0e6b2b112f79670eb61cf9f7617bba22, then read the attached apisprout.log from the reported unmarshalling error backward. Compare the `required` value in the OpenAPI document with the type expected by the loader. Done means the reproducer has a clear, verified outcome without the reported failure or an explicitly actionable incompatibility message.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, backend-api-design
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.