[F] getJsonSchemaTypes
function getJsonSchemaTypes(program): (Model | Namespace)[];
Returns types that are annotated with @jsonSchema
or contained within a namespace that is annoted with @jsonSchema
.
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
program | Program | TypeSpec program |
Returns
Section titled “Returns”(Model
| Namespace
)[]