Skip to content

[F] isJsonSchemaDeclaration

function isJsonSchemaDeclaration(program, target): boolean

Check if the given type is annoted with @jsonSchema or within a container annoted with @jsonSchema.

Parameters

ParameterTypeDescription
programProgramTypeSpec program
targetJsonSchemaDeclarationType

Returns

boolean