Emitter usage
Emitter usage
Section titled “Emitter usage”- Via the command line
tsp compile . --emit=@typespec/http-client-java- Via the config
emit: - "@typespec/http-client-java"The config can be extended with options as follows:
emit: - "@typespec/http-client-java"options: "@typespec/http-client-java": option: valueEmitter options
Section titled “Emitter options”emitter-output-dir
Section titled “emitter-output-dir”Type: absolutePath
Defines the emitter output directory. Defaults to {output-dir}/@typespec/http-client-java
See Configuring output directory for more info
license
Section titled “license”Type: object { name, company, link, header, description }
License information for the generated client code.
Properties:
| Name | Type | Default | Description |
|---|---|---|---|
name | string | License name. The config is required. Predefined license are: MIT License, Apache License 2.0, BSD 3-Clause License, MPL 2.0, GPL-3.0, LGPL-3.0. For other license, you need to configure all the other license config manually. | |
company | string | License company name. It will be used in copyright sentences. | |
link | string | License link. | |
header | string | License header. It will be used in the header comment of generated client code. | |
description | string | License description. The full license text. |
dev-options
Section titled “dev-options”Type: object { generate-code-model, debug, loglevel, java-temp-dir, profile }
Developer options for http-client-java emitter.
Properties:
| Name | Type | Default | Description |
|---|---|---|---|
generate-code-model | boolean | Generate intermittent ‘code-model.yaml’ file in output directory. | |
debug | boolean | Enable Java remote debug on port 5005. | |
loglevel | "off" | "debug" | "info" | "warn" | "error" | Log level for Java logging. Default is ‘warn’. | |
java-temp-dir | string | Temporary working directory for Java code generator. | |
profile | boolean | Enable performance profiling. |