Forum Discussion
frankkilcommins
3 years agoStaff
Are you using Swagger-Codegen to generate your server implementation?
I've just generated a Java SpringBoot server stub from the OpenAPI definition shared above and the response from the GET '/users' is as follows (which looks correct):
[
{
"meta": [
{
"display": "display",
"value": "value",
"$ref": "$ref"
},
{
"display": "display",
"value": "value",
"$ref": "$ref"
}
],
"id": "id"
},
{
"meta": [
{
"display": "display",
"value": "value",
"$ref": "$ref"
},
{
"display": "display",
"value": "value",
"$ref": "$ref"
}
],
"id": "id"
}
]
I suspect your issue is related to the usage of the keyword $ref. I would recommend that you change the name of that property so that it does not clash with a JSON Schema keyword.
Thanks,
Frank
Related Content
- 4 years ago
Recent Discussions
- 6 days ago
- 7 days ago
- 24 days ago