Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error producing mock for object with inheritance #49

Open
rmgrimm opened this issue Aug 25, 2020 · 0 comments
Open

Error producing mock for object with inheritance #49

rmgrimm opened this issue Aug 25, 2020 · 0 comments

Comments

@rmgrimm
Copy link

rmgrimm commented Aug 25, 2020

The attached specification demonstrates the issue: ExampleProblem.json.txt (adding .txt file extension so GitHub will allow me to upload)

Running with:

openapi-mock -u ExampleProblem.json serve

and then hitting http://localhost:8080/example will cause the error.

The relevant part of the log seems to be:

INFO[0005] runtime error: comparing uncomparable type map[string]interface {} 
goroutine 35 [running]:
...
...
panic(0x8bd1e0, 0xc0000a01a0)
        /usr/local/go/src/runtime/panic.go:967 +0x15d
github.com/muonsoft/openapi-mock/internal/openapi/generator/data.isEmpty(0x8ba100, 0xc0003af3e0, 0x1)
        /github/workspace/internal/openapi/generator/data/schemaMerger.go:180 +0xbd
github.com/muonsoft/openapi-mock/internal/openapi/generator/data.(*combinedSchemaMerger).replaceNonEmpty(...)
        /github/workspace/internal/openapi/generator/data/schemaMerger.go:145
...
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant