-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1785 from zeal18/more-independency
Degeneralize server and client generators
- Loading branch information
Showing
32 changed files
with
5,961 additions
and
2,424 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
82 changes: 0 additions & 82 deletions
82
modules/core/src/main/scala/dev/guardrail/generators/ClientGenerator.scala
This file was deleted.
Oops, something went wrong.
21 changes: 21 additions & 0 deletions
21
modules/core/src/main/scala/dev/guardrail/generators/Clients.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package dev.guardrail.generators | ||
|
||
import cats.data.NonEmptyList | ||
|
||
import dev.guardrail.core.SupportDefinition | ||
import dev.guardrail.languages.LA | ||
import dev.guardrail.terms.protocol.StaticDefns | ||
|
||
case class Clients[L <: LA](clients: List[Client[L]], supportDefinitions: List[SupportDefinition[L]]) | ||
case class Client[L <: LA]( | ||
pkg: List[String], | ||
clientName: String, | ||
imports: List[L#Import], | ||
staticDefns: StaticDefns[L], | ||
client: NonEmptyList[Either[L#Trait, L#ClassDefinition]], | ||
responseDefinitions: List[L#Definition] | ||
) | ||
case class RenderedClientOperation[L <: LA]( | ||
clientOperation: L#Definition, | ||
supportDefinitions: List[L#Definition] | ||
) |
Oops, something went wrong.