Type inheritance is broken for array types #285
Labels
bug
raml-parser-2
Issue related to raml-parser-2 project
v2
Feature will be implemented in v2.0 only (master branch)
Given the following RAML where
Bar
extendsFoo
and an endpoint that returns aBar
array:Expected result
class Bar extends Foo
in the generated Java code:Actual result
Bar
does not extendFoo
, as seen here:(the
extends Foo
is missing). The cause is probably because the return type isarray
(so Bar is not referenced directly) and the generic type initems
isBar
:However note that both
Foo
andBar
are still generated:When changing the endpoint to use square brackets
the
Bar
model is generated correctlyThe text was updated successfully, but these errors were encountered: