On the generated Swagger API json file, I have a d...
# http4k
e
On the generated Swagger API json file, I have a duplicate key in "definitions" :
Copy code
"object-1161328054": {
			"type": "object",
			"properties": {}
		},
		"object158819726": {
			"type": "object",
			"properties": {
				"id": {
					"type": "string"
				},
				"attrs": {
					"$ref": "#/definitions/object-1161328054"
				},
				"created": {
					"type": "string"
				},
				"updated": {
					"type": "string"
				}
			}
		},
		"object-1161328054": {
			"type": "object",
			"properties": {}
		},
is this something I did wrong or a known bug?
In fact both keys are identical even in their structure
d
Hmm - looks like a bug. Can you raise it please?
Along with an example of the json if you can
e
Yep, I'll get to this by tomorrow ...
My comment on github:
Copy code
Sure, I'm currently working on it. But I decided to post this, even though it's incomplete, just to kickstart the process.
What I'm doing: I am stripping all the parts of my code that are unrelated to this issue, hoping that I'll eventually get to a bare bones Kotlin file with everything needed to reproduce the problem, but nothing else.
It is quite possible that in the end, I'll find out the problem was on my part.
I think I posted a partial problem just too early, I could've waited till I had a Kotlin file to reproduce the problem... 😉