Open novakov-alexey-zz opened 5 years ago
I'm also facing the same issue. For reference this is where the swagger code mentioned above lives right now.
I'll take a look to see whether the recent work cleaning up internal data models has added clarity as to why this happens
Minimal reproducing case:
swagger: '2.0'
info:
description: 'This is the [Aeternity](https://www.aeternity.com/) node API.'
basePath: /v2
schemes:
- http
definitions:
ChannelCreateTx:
type: object
properties:
foo:
type: string
required:
- foo
GenericTx:
type: object
discriminator: type
properties:
bar:
type: string
required:
- bar
ChannelCreateTxJSON:
allOf:
- $ref: '#/definitions/GenericTx'
- $ref: '#/definitions/ChannelCreateTx'
I am trying to generate a client for this API: https://raw.githubusercontent.com/aeternity/aeternity/master/config/swagger.yaml
with the following build.sbt:
Dependencies.scala
I am not sure whether I have to specify all dependencies which are used by http4s template. It seems I have to.
In result, sbt plugin fails with lots of compilation errors. The first error is:
P.S. original issue: https://github.com/twilio/sbt-guardrail/issues/11