readCodeForGeneration

internal fun readCodeForGeneration(stream: InputStream, name: String, format: SupportedCodeGenerationFormat? = null, generateHelperCompanionObject: Boolean = false, formats: List<SupportedCodeGenerationFormat> = supportedFormats.filterIsInstance<SupportedCodeGenerationFormat>()): GeneratedCode

Return

GeneratedCode with generated code

Parameters

stream

where to read the schema from

name

the name of the top-level interface to generate

format

the format to use

generateHelperCompanionObject

whether to generate a helper companion object (only needed for Jupyter)

formats

Optional list of supported formats to use. If not specified, all formats will be used.