RepreZen / KaiZen-OpenApi-Parser

High-performance Parser, Validator, and Java Object Model for OpenAPI 3.x
130 stars 31 forks source link

Referenced object is not compatible with referencing site #161

Open KevinMitchell opened 6 years ago

KevinMitchell commented 6 years ago

Hi,

I have a spec split across multiple sources. The Kaizen OpenAPI editor in Eclipse shows no errors. However, when parsing the example I get an IllegalStateException with the message 'Referenced object is not compatible with referencing site'. Unfortunately it provides no context to help pinpoint where it has a problem, and what it thinks is wrong. It would be helpful if the parser gave more context. It's also not clear why the parser views this as a fatal error, killing the parser, rather than reporting this as a problem in the generated model.

andylowry commented 6 years ago

@KevinMitchell Can you provide an example that causes this problem? I'll have a look. Thanks