onSchema

abstract fun onSchema(schema: Schema, outputDirectory: File)

Called when the schema changed and codegen needs to be updated

Parameters

schema

the validated schema.

outputDirectory

the compiler output directory. This directory is shared with the compiler, make sure to use a specific package name to avoid clobbering other files.