You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, when running the apibuilder command on this spec, the generated classes will extend the trait Shape, but not generate the overridden field for sides. The example of this output would look something like:
class Circle needs to be abstract. Missing implementation for:
def sides: Integer // inherited from trait Shape
final case class Circle(radius: Decimal) extends Shape
The workaround for this has been to explicitly add the interface fields to the models fields array, however we should most likely consider this spec json invalid before we even get to code generation.
The text was updated successfully, but these errors were encountered:
The following spec is valid:
However, when running the
apibuilder
command on this spec, the generated classes will extend the trait Shape, but not generate the overridden field forsides
. The example of this output would look something like:The workaround for this has been to explicitly add the interface fields to the models fields array, however we should most likely consider this spec json invalid before we even get to code generation.
The text was updated successfully, but these errors were encountered: