TypedJsonCodeGen

typedjson.codegen.TypedJsonCodeGen

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Type members

Classlikes

case class FieldWithType(field: FieldDef, tpe: String)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class FieldWithTypeVersionAndName(field: FieldDef, tpe: String, version: Int, name: String)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Abstract methods

protected def automaticImportsOtherTypedef(typeDef: OtherTypeDef): Seq[String]
protected def codeFromOtherTypeDef(typeDef: OtherTypeDef): List[Definition]

Concrete methods

def automaticImports(typeDef: TypeDef): Seq[String]
def camelCaseFromSnakecase(s: String): String
def codeFromTypeDef(typeDef: TypeDef, extraImports: Seq[String]): List[Definition]
def generateCodeFromFile(generatedRoot: Path, yamlFile: Path): String
def isFieldUndefined(field: FieldDef, allUndefined: Boolean): Boolean
def isUndefined(allUndefined: Boolean, withUndefined: Boolean, alwaysPresent: Boolean): Boolean
def pascalCaseFromSnakecase(s: String): String

Abstract fields