@azure-tools/typespec-java 0.27.1 → 0.27.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/code-model-builder.d.ts +1 -7
- package/dist/src/code-model-builder.d.ts.map +1 -1
- package/dist/src/code-model-builder.js +191 -139
- package/dist/src/code-model-builder.js.map +1 -1
- package/dist/src/common/client.d.ts +1 -4
- package/dist/src/common/client.d.ts.map +1 -1
- package/dist/src/common/operation.d.ts +1 -2
- package/dist/src/common/operation.d.ts.map +1 -1
- package/dist/src/common/operation.js.map +1 -1
- package/dist/src/emitter.d.ts +1 -34
- package/dist/src/emitter.d.ts.map +1 -1
- package/dist/src/emitter.js +54 -56
- package/dist/src/emitter.js.map +1 -1
- package/dist/src/external-schemas.d.ts.map +1 -1
- package/dist/src/external-schemas.js +3 -4
- package/dist/src/external-schemas.js.map +1 -1
- package/dist/src/index.d.ts +2 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +4 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/lib.d.ts +224 -0
- package/dist/src/lib.d.ts.map +1 -0
- package/dist/src/lib.js +114 -0
- package/dist/src/lib.js.map +1 -0
- package/dist/src/operation-utils.d.ts +1 -2
- package/dist/src/operation-utils.d.ts.map +1 -1
- package/dist/src/operation-utils.js +0 -6
- package/dist/src/operation-utils.js.map +1 -1
- package/dist/src/type-utils.d.ts +2 -2
- package/dist/src/type-utils.d.ts.map +1 -1
- package/dist/src/type-utils.js +5 -3
- package/dist/src/type-utils.js.map +1 -1
- package/dist/src/utils.d.ts +11 -3
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/src/utils.js +17 -20
- package/dist/src/utils.js.map +1 -1
- package/dist/src/validate.d.ts +1 -0
- package/dist/src/validate.d.ts.map +1 -1
- package/dist/src/validate.js +68 -23
- package/dist/src/validate.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/generator/http-client-generator/target/emitter.jar +0 -0
- package/package.json +40 -37
- package/readme.md +1 -1
package/dist/src/emitter.js
CHANGED
|
@@ -1,66 +1,46 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getNormalizedAbsolutePath, NoTarget, resolvePath } from "@typespec/compiler";
|
|
2
2
|
import { promises } from "fs";
|
|
3
3
|
import { dump } from "js-yaml";
|
|
4
4
|
import { dirname } from "path";
|
|
5
5
|
import { fileURLToPath } from "url";
|
|
6
6
|
import { CodeModelBuilder } from "./code-model-builder.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
type: "object",
|
|
11
|
-
additionalProperties: true,
|
|
12
|
-
properties: {
|
|
13
|
-
namespace: { type: "string", nullable: true },
|
|
14
|
-
"package-dir": { type: "string", nullable: true },
|
|
15
|
-
flavor: { type: "string", nullable: true },
|
|
16
|
-
// service
|
|
17
|
-
"service-name": { type: "string", nullable: true },
|
|
18
|
-
"service-versions": { type: "array", items: { type: "string" }, nullable: true },
|
|
19
|
-
// header
|
|
20
|
-
"skip-special-headers": { type: "array", items: { type: "string" }, nullable: true },
|
|
21
|
-
// sample and test
|
|
22
|
-
"generate-samples": { type: "boolean", nullable: true, default: true },
|
|
23
|
-
"generate-tests": { type: "boolean", nullable: true, default: true },
|
|
24
|
-
"enable-sync-stack": { type: "boolean", nullable: true, default: true },
|
|
25
|
-
"stream-style-serialization": { type: "boolean", nullable: true, default: true },
|
|
26
|
-
"use-object-for-unknown": { type: "boolean", nullable: true, default: false },
|
|
27
|
-
// customization
|
|
28
|
-
"partial-update": { type: "boolean", nullable: true, default: false },
|
|
29
|
-
"models-subpackage": { type: "string", nullable: true },
|
|
30
|
-
"custom-types": { type: "string", nullable: true },
|
|
31
|
-
"custom-types-subpackage": { type: "string", nullable: true },
|
|
32
|
-
"customization-class": { type: "string", nullable: true },
|
|
33
|
-
polling: { type: "object", additionalProperties: true, nullable: true },
|
|
34
|
-
"group-etag-headers": { type: "boolean", nullable: true },
|
|
35
|
-
"enable-subclient": { type: "boolean", nullable: true, default: false },
|
|
36
|
-
"advanced-versioning": { type: "boolean", nullable: true, default: false },
|
|
37
|
-
"api-version": { type: "string", nullable: true },
|
|
38
|
-
"service-version-exclude-preview": { type: "boolean", nullable: true, default: false },
|
|
39
|
-
"dev-options": { type: "object", additionalProperties: true, nullable: true },
|
|
40
|
-
},
|
|
41
|
-
required: [],
|
|
42
|
-
};
|
|
43
|
-
export const $lib = createTypeSpecLibrary({
|
|
44
|
-
name: "@azure-tools/typespec-java",
|
|
45
|
-
diagnostics: {},
|
|
46
|
-
emitter: {
|
|
47
|
-
options: EmitterOptionsSchema,
|
|
48
|
-
},
|
|
49
|
-
});
|
|
7
|
+
import { LibName, reportDiagnostic } from "./lib.js";
|
|
8
|
+
import { DiagnosticError, spawnAsync, SpawnError, trace } from "./utils.js";
|
|
9
|
+
import { validateDependencies } from "./validate.js";
|
|
50
10
|
export async function $onEmit(context) {
|
|
51
11
|
var _a, _b, _c, _d, _e, _f;
|
|
52
12
|
const program = context.program;
|
|
53
|
-
|
|
13
|
+
if (!program.compilerOptions.noEmit) {
|
|
14
|
+
await validateDependencies(program, true);
|
|
15
|
+
}
|
|
54
16
|
if (!program.hasError()) {
|
|
55
17
|
const options = context.options;
|
|
56
18
|
if (!options["flavor"]) {
|
|
57
|
-
if (
|
|
19
|
+
if (LibName === "@azure-tools/typespec-java") {
|
|
58
20
|
options["flavor"] = "azure";
|
|
59
21
|
}
|
|
60
22
|
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
23
|
+
let codeModel;
|
|
24
|
+
try {
|
|
25
|
+
const builder = new CodeModelBuilder(program, context);
|
|
26
|
+
codeModel = await builder.build();
|
|
27
|
+
}
|
|
28
|
+
catch (error) {
|
|
29
|
+
if (error instanceof DiagnosticError) {
|
|
30
|
+
// diagnostic thrown as error
|
|
31
|
+
program.reportDiagnostic(error.diagnostic);
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
// unknown error
|
|
35
|
+
reportDiagnostic(program, {
|
|
36
|
+
code: "unknown-error",
|
|
37
|
+
format: { errorMessage: error.message },
|
|
38
|
+
target: NoTarget,
|
|
39
|
+
});
|
|
40
|
+
trace(program, error.stack);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
if (codeModel && !program.hasError() && !program.compilerOptions.noEmit) {
|
|
64
44
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
65
45
|
const moduleRoot = resolvePath(__dirname, "..", "..");
|
|
66
46
|
const outputPath = context.emitterOutputDir;
|
|
@@ -69,16 +49,20 @@ export async function $onEmit(context) {
|
|
|
69
49
|
const codeModelFileName = resolvePath(outputPath, "./code-model.yaml");
|
|
70
50
|
await promises.mkdir(outputPath, { recursive: true }).catch((err) => {
|
|
71
51
|
if (err.code !== "EISDIR" && err.code !== "EEXIST") {
|
|
72
|
-
|
|
52
|
+
reportDiagnostic(program, {
|
|
53
|
+
code: "unknown-error",
|
|
54
|
+
format: { errorMessage: `Failed to create output directory: ${outputPath}.` },
|
|
55
|
+
target: NoTarget,
|
|
56
|
+
});
|
|
73
57
|
return;
|
|
74
58
|
}
|
|
75
59
|
});
|
|
76
60
|
await program.host.writeFile(codeModelFileName, dump(codeModel));
|
|
77
|
-
|
|
61
|
+
trace(program, `Code model file written to ${codeModelFileName}`);
|
|
78
62
|
const emitterOptions = JSON.stringify(options);
|
|
79
|
-
|
|
63
|
+
trace(program, `Emitter options ${emitterOptions}`);
|
|
80
64
|
const jarFileName = resolvePath(moduleRoot, "generator/http-client-generator/target", "emitter.jar");
|
|
81
|
-
|
|
65
|
+
trace(program, `Exec JAR ${jarFileName}`);
|
|
82
66
|
const javaArgs = [];
|
|
83
67
|
javaArgs.push(`-DemitterOptions=${emitterOptions}`);
|
|
84
68
|
if ((_a = options["dev-options"]) === null || _a === void 0 ? void 0 : _a.debug) {
|
|
@@ -94,14 +78,28 @@ export async function $onEmit(context) {
|
|
|
94
78
|
javaArgs.push(jarFileName);
|
|
95
79
|
javaArgs.push(codeModelFileName);
|
|
96
80
|
try {
|
|
97
|
-
await spawnAsync("java", javaArgs, { stdio: "
|
|
81
|
+
const result = await spawnAsync("java", javaArgs, { stdio: "pipe" });
|
|
82
|
+
trace(program, `Code generation log: ${result.stdout}`);
|
|
98
83
|
}
|
|
99
84
|
catch (error) {
|
|
100
85
|
if (error && "code" in error && error["code"] === "ENOENT") {
|
|
101
|
-
|
|
86
|
+
reportDiagnostic(program, {
|
|
87
|
+
code: "invalid-java-sdk-dependency",
|
|
88
|
+
target: NoTarget,
|
|
89
|
+
});
|
|
102
90
|
}
|
|
103
91
|
else {
|
|
104
|
-
|
|
92
|
+
// error in Java codegen, report as unknown error
|
|
93
|
+
reportDiagnostic(program, {
|
|
94
|
+
code: "unknown-error",
|
|
95
|
+
format: {
|
|
96
|
+
errorMessage: 'The emitter was unable to generate client code from this TypeSpec, please run this command again with "--trace http-client-java" to get diagnostic information, and open an issue on https://github.com/microsoft/typespec',
|
|
97
|
+
},
|
|
98
|
+
target: NoTarget,
|
|
99
|
+
});
|
|
100
|
+
if (error instanceof SpawnError) {
|
|
101
|
+
trace(program, `Code generation error: ${error.stdout}`);
|
|
102
|
+
}
|
|
105
103
|
}
|
|
106
104
|
}
|
|
107
105
|
if (!((_f = options["dev-options"]) === null || _f === void 0 ? void 0 : _f["generate-code-model"])) {
|
package/dist/src/emitter.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emitter.js","sourceRoot":"","sources":["../../src/emitter.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"emitter.js","sourceRoot":"","sources":["../../src/emitter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,yBAAyB,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACnG,OAAO,EAAE,QAAQ,EAAE,MAAM,IAAI,CAAC;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,OA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A6C,CAAC;
|
|
1
|
+
{"version":3,"file":"external-schemas.d.ts","sourceRoot":"","sources":["../../src/external-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,YAAY,EACZ,YAAY,EAEZ,MAAM,EACN,OAAO,EACP,YAAY,EACb,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,wBAAwB,EAGxB,OAAO,EACR,MAAM,6CAA6C,CAAC;AAQrD,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,OAAO,EAChB,YAAY,EAAE,YAAY,GACzB,YAAY,CAuEd;AAED,wBAAgB,8BAA8B,CAC5C,OAAO,EAAE,OAAO,EAChB,YAAY,EAAE,YAAY,GACzB,YAAY,CAoCd;AAED,wBAAgB,gCAAgC,CAC9C,OAAO,EAAE,OAAO,EAChB,YAAY,EAAE,YAAY,GACzB,YAAY,CA+Cd;AAuGD,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,wBAAwB,EAClC,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,MAAM,GAAG,SAAS,EACjC,OAAO,EAAE,OAAO,EAChB,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,YAAY,EAC1B,iBAAiB,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,MAAM,GAC3C,YAAY,CAyFd"}
|
|
@@ -17,8 +17,7 @@ export function createResponseErrorSchema(schemas, stringSchema) {
|
|
|
17
17
|
},
|
|
18
18
|
},
|
|
19
19
|
});
|
|
20
|
-
responseErrorSchema.crossLanguageDefinitionId =
|
|
21
|
-
"Azure.Core.Foundations.Error";
|
|
20
|
+
responseErrorSchema.language.default.crossLanguageDefinitionId = "Azure.Core.Foundations.Error";
|
|
22
21
|
schemas.add(responseErrorSchema);
|
|
23
22
|
responseErrorSchema.addProperty(new Property("code", "One of a server-defined set of error codes.", stringSchema, {
|
|
24
23
|
serializedName: "code",
|
|
@@ -65,7 +64,7 @@ export function createResponseInnerErrorSchema(schemas, stringSchema) {
|
|
|
65
64
|
},
|
|
66
65
|
},
|
|
67
66
|
});
|
|
68
|
-
responseInnerErrorSchema.crossLanguageDefinitionId =
|
|
67
|
+
responseInnerErrorSchema.language.default.crossLanguageDefinitionId =
|
|
69
68
|
"Azure.Core.Foundations.InnerError";
|
|
70
69
|
schemas.add(responseInnerErrorSchema);
|
|
71
70
|
responseInnerErrorSchema.addProperty(new Property("code", "One of a server-defined set of error codes.", stringSchema, {
|
|
@@ -209,7 +208,7 @@ export function getFileDetailsSchema(property, namespace, javaNamespace, schemas
|
|
|
209
208
|
fileDetailsSchema.language.default.description = fileSdkType.doc;
|
|
210
209
|
}
|
|
211
210
|
// crossLanguageDefinitionId
|
|
212
|
-
fileDetailsSchema.crossLanguageDefinitionId =
|
|
211
|
+
fileDetailsSchema.language.default.crossLanguageDefinitionId =
|
|
213
212
|
fileSdkType.crossLanguageDefinitionId;
|
|
214
213
|
let contentTypeProperty;
|
|
215
214
|
let filenameProperty;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"external-schemas.js","sourceRoot":"","sources":["../../src/external-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EAEX,YAAY,EACZ,QAAQ,GAIT,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"external-schemas.js","sourceRoot":"","sources":["../../src/external-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EAEX,YAAY,EACZ,QAAQ,GAIT,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAOtD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAEtD;;;;GAIG;AACH,MAAM,UAAU,yBAAyB,CACvC,OAAgB,EAChB,YAA0B;IAE1B,MAAM,mBAAmB,GAAG,IAAI,YAAY,CAAC,OAAO,EAAE,mBAAmB,EAAE;QACzE,QAAQ,EAAE;YACR,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D,OAAO,iBAAiB,CAAC;IAC3B,CAAC;AACH,CAAC"}
|
package/dist/src/index.d.ts
CHANGED
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC"}
|
package/dist/src/index.js
CHANGED
package/dist/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,oDAAoD;AACpD,OAAO,EAAE,IAAI,EAA8B,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
export interface DevOptions {
|
|
2
|
+
"generate-code-model"?: boolean;
|
|
3
|
+
debug?: boolean;
|
|
4
|
+
loglevel?: "off" | "debug" | "info" | "warn" | "error";
|
|
5
|
+
"java-temp-dir"?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface EmitterOptions {
|
|
8
|
+
namespace?: string;
|
|
9
|
+
"package-dir"?: string;
|
|
10
|
+
flavor?: string;
|
|
11
|
+
"service-name"?: string;
|
|
12
|
+
"service-versions"?: string[];
|
|
13
|
+
"skip-special-headers"?: string[];
|
|
14
|
+
"generate-samples"?: boolean;
|
|
15
|
+
"generate-tests"?: boolean;
|
|
16
|
+
"enable-sync-stack"?: boolean;
|
|
17
|
+
"stream-style-serialization"?: boolean;
|
|
18
|
+
"use-object-for-unknown"?: boolean;
|
|
19
|
+
"partial-update"?: boolean;
|
|
20
|
+
"models-subpackage"?: string;
|
|
21
|
+
"custom-types"?: string;
|
|
22
|
+
"custom-types-subpackage"?: string;
|
|
23
|
+
"customization-class"?: string;
|
|
24
|
+
polling?: any;
|
|
25
|
+
"group-etag-headers"?: boolean;
|
|
26
|
+
"enable-subclient"?: boolean;
|
|
27
|
+
"advanced-versioning"?: boolean;
|
|
28
|
+
"api-version"?: string;
|
|
29
|
+
"service-version-exclude-preview"?: boolean;
|
|
30
|
+
"dev-options"?: DevOptions;
|
|
31
|
+
}
|
|
32
|
+
export declare const $lib: import("@typespec/compiler").TypeSpecLibrary<{
|
|
33
|
+
"unknown-error": {
|
|
34
|
+
readonly default: import("@typespec/compiler").CallableMessage<["errorMessage"]>;
|
|
35
|
+
};
|
|
36
|
+
"invalid-java-sdk-dependency": {
|
|
37
|
+
readonly default: "Java Development Kit (JDK) is not found in PATH. Please install JDK 17 or above. Microsoft Build of OpenJDK can be downloaded from https://learn.microsoft.com/java/openjdk/download";
|
|
38
|
+
readonly jdkVersion: import("@typespec/compiler").CallableMessage<["javaVersion"]>;
|
|
39
|
+
readonly maven: "Apache Maven is not found in PATH. Apache Maven can be downloaded from https://maven.apache.org/download.cgi";
|
|
40
|
+
};
|
|
41
|
+
"multiple-server-not-supported": {
|
|
42
|
+
readonly default: "Multiple server on client is not supported.";
|
|
43
|
+
};
|
|
44
|
+
"invalid-api-version": {
|
|
45
|
+
readonly default: import("@typespec/compiler").CallableMessage<["apiVersion"]>;
|
|
46
|
+
};
|
|
47
|
+
"unrecognized-type": {
|
|
48
|
+
readonly default: import("@typespec/compiler").CallableMessage<["typeKind"]>;
|
|
49
|
+
readonly unionType: import("@typespec/compiler").CallableMessage<["typeKind"]>;
|
|
50
|
+
readonly multipartFormData: import("@typespec/compiler").CallableMessage<["typeKind"]>;
|
|
51
|
+
};
|
|
52
|
+
"no-service": {
|
|
53
|
+
readonly default: "No service found in this TypeSpec. Client will not be generated.";
|
|
54
|
+
};
|
|
55
|
+
"auth-scheme-not-supported": {
|
|
56
|
+
readonly oauth2Unbranded: "OAuth2 auth scheme is not supported in unbranded. Client builder will fallback to use KeyCredential.";
|
|
57
|
+
readonly apiKeyLocation: "ApiKey auth is currently only supported for ApiKeyLocation.header.";
|
|
58
|
+
readonly basicAuthBranded: import("@typespec/compiler").CallableMessage<["scheme"]>;
|
|
59
|
+
};
|
|
60
|
+
"protocol-api-not-generated": {
|
|
61
|
+
readonly multipartFormData: import("@typespec/compiler").CallableMessage<["operationName"]>;
|
|
62
|
+
};
|
|
63
|
+
"convenience-api-not-generated": {
|
|
64
|
+
readonly multipleContentType: import("@typespec/compiler").CallableMessage<["operationName"]>;
|
|
65
|
+
readonly jsonMergePatch: import("@typespec/compiler").CallableMessage<["operationName"]>;
|
|
66
|
+
};
|
|
67
|
+
"header-parameter-format-not-supported": {
|
|
68
|
+
readonly default: import("@typespec/compiler").CallableMessage<["format"]>;
|
|
69
|
+
};
|
|
70
|
+
}, EmitterOptions, never>;
|
|
71
|
+
export declare const LibName: string, reportDiagnostic: <C extends "unknown-error" | "invalid-java-sdk-dependency" | "multiple-server-not-supported" | "invalid-api-version" | "unrecognized-type" | "no-service" | "auth-scheme-not-supported" | "protocol-api-not-generated" | "convenience-api-not-generated" | "header-parameter-format-not-supported", M extends keyof {
|
|
72
|
+
"unknown-error": {
|
|
73
|
+
readonly default: import("@typespec/compiler").CallableMessage<["errorMessage"]>;
|
|
74
|
+
};
|
|
75
|
+
"invalid-java-sdk-dependency": {
|
|
76
|
+
readonly default: "Java Development Kit (JDK) is not found in PATH. Please install JDK 17 or above. Microsoft Build of OpenJDK can be downloaded from https://learn.microsoft.com/java/openjdk/download";
|
|
77
|
+
readonly jdkVersion: import("@typespec/compiler").CallableMessage<["javaVersion"]>;
|
|
78
|
+
readonly maven: "Apache Maven is not found in PATH. Apache Maven can be downloaded from https://maven.apache.org/download.cgi";
|
|
79
|
+
};
|
|
80
|
+
"multiple-server-not-supported": {
|
|
81
|
+
readonly default: "Multiple server on client is not supported.";
|
|
82
|
+
};
|
|
83
|
+
"invalid-api-version": {
|
|
84
|
+
readonly default: import("@typespec/compiler").CallableMessage<["apiVersion"]>;
|
|
85
|
+
};
|
|
86
|
+
"unrecognized-type": {
|
|
87
|
+
readonly default: import("@typespec/compiler").CallableMessage<["typeKind"]>;
|
|
88
|
+
readonly unionType: import("@typespec/compiler").CallableMessage<["typeKind"]>;
|
|
89
|
+
readonly multipartFormData: import("@typespec/compiler").CallableMessage<["typeKind"]>;
|
|
90
|
+
};
|
|
91
|
+
"no-service": {
|
|
92
|
+
readonly default: "No service found in this TypeSpec. Client will not be generated.";
|
|
93
|
+
};
|
|
94
|
+
"auth-scheme-not-supported": {
|
|
95
|
+
readonly oauth2Unbranded: "OAuth2 auth scheme is not supported in unbranded. Client builder will fallback to use KeyCredential.";
|
|
96
|
+
readonly apiKeyLocation: "ApiKey auth is currently only supported for ApiKeyLocation.header.";
|
|
97
|
+
readonly basicAuthBranded: import("@typespec/compiler").CallableMessage<["scheme"]>;
|
|
98
|
+
};
|
|
99
|
+
"protocol-api-not-generated": {
|
|
100
|
+
readonly multipartFormData: import("@typespec/compiler").CallableMessage<["operationName"]>;
|
|
101
|
+
};
|
|
102
|
+
"convenience-api-not-generated": {
|
|
103
|
+
readonly multipleContentType: import("@typespec/compiler").CallableMessage<["operationName"]>;
|
|
104
|
+
readonly jsonMergePatch: import("@typespec/compiler").CallableMessage<["operationName"]>;
|
|
105
|
+
};
|
|
106
|
+
"header-parameter-format-not-supported": {
|
|
107
|
+
readonly default: import("@typespec/compiler").CallableMessage<["format"]>;
|
|
108
|
+
};
|
|
109
|
+
}[C]>(program: import("@typespec/compiler").Program, diag: import("@typespec/compiler").DiagnosticReport<{
|
|
110
|
+
"unknown-error": {
|
|
111
|
+
readonly default: import("@typespec/compiler").CallableMessage<["errorMessage"]>;
|
|
112
|
+
};
|
|
113
|
+
"invalid-java-sdk-dependency": {
|
|
114
|
+
readonly default: "Java Development Kit (JDK) is not found in PATH. Please install JDK 17 or above. Microsoft Build of OpenJDK can be downloaded from https://learn.microsoft.com/java/openjdk/download";
|
|
115
|
+
readonly jdkVersion: import("@typespec/compiler").CallableMessage<["javaVersion"]>;
|
|
116
|
+
readonly maven: "Apache Maven is not found in PATH. Apache Maven can be downloaded from https://maven.apache.org/download.cgi";
|
|
117
|
+
};
|
|
118
|
+
"multiple-server-not-supported": {
|
|
119
|
+
readonly default: "Multiple server on client is not supported.";
|
|
120
|
+
};
|
|
121
|
+
"invalid-api-version": {
|
|
122
|
+
readonly default: import("@typespec/compiler").CallableMessage<["apiVersion"]>;
|
|
123
|
+
};
|
|
124
|
+
"unrecognized-type": {
|
|
125
|
+
readonly default: import("@typespec/compiler").CallableMessage<["typeKind"]>;
|
|
126
|
+
readonly unionType: import("@typespec/compiler").CallableMessage<["typeKind"]>;
|
|
127
|
+
readonly multipartFormData: import("@typespec/compiler").CallableMessage<["typeKind"]>;
|
|
128
|
+
};
|
|
129
|
+
"no-service": {
|
|
130
|
+
readonly default: "No service found in this TypeSpec. Client will not be generated.";
|
|
131
|
+
};
|
|
132
|
+
"auth-scheme-not-supported": {
|
|
133
|
+
readonly oauth2Unbranded: "OAuth2 auth scheme is not supported in unbranded. Client builder will fallback to use KeyCredential.";
|
|
134
|
+
readonly apiKeyLocation: "ApiKey auth is currently only supported for ApiKeyLocation.header.";
|
|
135
|
+
readonly basicAuthBranded: import("@typespec/compiler").CallableMessage<["scheme"]>;
|
|
136
|
+
};
|
|
137
|
+
"protocol-api-not-generated": {
|
|
138
|
+
readonly multipartFormData: import("@typespec/compiler").CallableMessage<["operationName"]>;
|
|
139
|
+
};
|
|
140
|
+
"convenience-api-not-generated": {
|
|
141
|
+
readonly multipleContentType: import("@typespec/compiler").CallableMessage<["operationName"]>;
|
|
142
|
+
readonly jsonMergePatch: import("@typespec/compiler").CallableMessage<["operationName"]>;
|
|
143
|
+
};
|
|
144
|
+
"header-parameter-format-not-supported": {
|
|
145
|
+
readonly default: import("@typespec/compiler").CallableMessage<["format"]>;
|
|
146
|
+
};
|
|
147
|
+
}, C, M>) => void, createDiagnostic: <C extends "unknown-error" | "invalid-java-sdk-dependency" | "multiple-server-not-supported" | "invalid-api-version" | "unrecognized-type" | "no-service" | "auth-scheme-not-supported" | "protocol-api-not-generated" | "convenience-api-not-generated" | "header-parameter-format-not-supported", M extends keyof {
|
|
148
|
+
"unknown-error": {
|
|
149
|
+
readonly default: import("@typespec/compiler").CallableMessage<["errorMessage"]>;
|
|
150
|
+
};
|
|
151
|
+
"invalid-java-sdk-dependency": {
|
|
152
|
+
readonly default: "Java Development Kit (JDK) is not found in PATH. Please install JDK 17 or above. Microsoft Build of OpenJDK can be downloaded from https://learn.microsoft.com/java/openjdk/download";
|
|
153
|
+
readonly jdkVersion: import("@typespec/compiler").CallableMessage<["javaVersion"]>;
|
|
154
|
+
readonly maven: "Apache Maven is not found in PATH. Apache Maven can be downloaded from https://maven.apache.org/download.cgi";
|
|
155
|
+
};
|
|
156
|
+
"multiple-server-not-supported": {
|
|
157
|
+
readonly default: "Multiple server on client is not supported.";
|
|
158
|
+
};
|
|
159
|
+
"invalid-api-version": {
|
|
160
|
+
readonly default: import("@typespec/compiler").CallableMessage<["apiVersion"]>;
|
|
161
|
+
};
|
|
162
|
+
"unrecognized-type": {
|
|
163
|
+
readonly default: import("@typespec/compiler").CallableMessage<["typeKind"]>;
|
|
164
|
+
readonly unionType: import("@typespec/compiler").CallableMessage<["typeKind"]>;
|
|
165
|
+
readonly multipartFormData: import("@typespec/compiler").CallableMessage<["typeKind"]>;
|
|
166
|
+
};
|
|
167
|
+
"no-service": {
|
|
168
|
+
readonly default: "No service found in this TypeSpec. Client will not be generated.";
|
|
169
|
+
};
|
|
170
|
+
"auth-scheme-not-supported": {
|
|
171
|
+
readonly oauth2Unbranded: "OAuth2 auth scheme is not supported in unbranded. Client builder will fallback to use KeyCredential.";
|
|
172
|
+
readonly apiKeyLocation: "ApiKey auth is currently only supported for ApiKeyLocation.header.";
|
|
173
|
+
readonly basicAuthBranded: import("@typespec/compiler").CallableMessage<["scheme"]>;
|
|
174
|
+
};
|
|
175
|
+
"protocol-api-not-generated": {
|
|
176
|
+
readonly multipartFormData: import("@typespec/compiler").CallableMessage<["operationName"]>;
|
|
177
|
+
};
|
|
178
|
+
"convenience-api-not-generated": {
|
|
179
|
+
readonly multipleContentType: import("@typespec/compiler").CallableMessage<["operationName"]>;
|
|
180
|
+
readonly jsonMergePatch: import("@typespec/compiler").CallableMessage<["operationName"]>;
|
|
181
|
+
};
|
|
182
|
+
"header-parameter-format-not-supported": {
|
|
183
|
+
readonly default: import("@typespec/compiler").CallableMessage<["format"]>;
|
|
184
|
+
};
|
|
185
|
+
}[C]>(diag: import("@typespec/compiler").DiagnosticReport<{
|
|
186
|
+
"unknown-error": {
|
|
187
|
+
readonly default: import("@typespec/compiler").CallableMessage<["errorMessage"]>;
|
|
188
|
+
};
|
|
189
|
+
"invalid-java-sdk-dependency": {
|
|
190
|
+
readonly default: "Java Development Kit (JDK) is not found in PATH. Please install JDK 17 or above. Microsoft Build of OpenJDK can be downloaded from https://learn.microsoft.com/java/openjdk/download";
|
|
191
|
+
readonly jdkVersion: import("@typespec/compiler").CallableMessage<["javaVersion"]>;
|
|
192
|
+
readonly maven: "Apache Maven is not found in PATH. Apache Maven can be downloaded from https://maven.apache.org/download.cgi";
|
|
193
|
+
};
|
|
194
|
+
"multiple-server-not-supported": {
|
|
195
|
+
readonly default: "Multiple server on client is not supported.";
|
|
196
|
+
};
|
|
197
|
+
"invalid-api-version": {
|
|
198
|
+
readonly default: import("@typespec/compiler").CallableMessage<["apiVersion"]>;
|
|
199
|
+
};
|
|
200
|
+
"unrecognized-type": {
|
|
201
|
+
readonly default: import("@typespec/compiler").CallableMessage<["typeKind"]>;
|
|
202
|
+
readonly unionType: import("@typespec/compiler").CallableMessage<["typeKind"]>;
|
|
203
|
+
readonly multipartFormData: import("@typespec/compiler").CallableMessage<["typeKind"]>;
|
|
204
|
+
};
|
|
205
|
+
"no-service": {
|
|
206
|
+
readonly default: "No service found in this TypeSpec. Client will not be generated.";
|
|
207
|
+
};
|
|
208
|
+
"auth-scheme-not-supported": {
|
|
209
|
+
readonly oauth2Unbranded: "OAuth2 auth scheme is not supported in unbranded. Client builder will fallback to use KeyCredential.";
|
|
210
|
+
readonly apiKeyLocation: "ApiKey auth is currently only supported for ApiKeyLocation.header.";
|
|
211
|
+
readonly basicAuthBranded: import("@typespec/compiler").CallableMessage<["scheme"]>;
|
|
212
|
+
};
|
|
213
|
+
"protocol-api-not-generated": {
|
|
214
|
+
readonly multipartFormData: import("@typespec/compiler").CallableMessage<["operationName"]>;
|
|
215
|
+
};
|
|
216
|
+
"convenience-api-not-generated": {
|
|
217
|
+
readonly multipleContentType: import("@typespec/compiler").CallableMessage<["operationName"]>;
|
|
218
|
+
readonly jsonMergePatch: import("@typespec/compiler").CallableMessage<["operationName"]>;
|
|
219
|
+
};
|
|
220
|
+
"header-parameter-format-not-supported": {
|
|
221
|
+
readonly default: import("@typespec/compiler").CallableMessage<["format"]>;
|
|
222
|
+
};
|
|
223
|
+
}, C, M>) => import("@typespec/compiler").Diagnostic, getTracer: (program: import("@typespec/compiler").Program) => import("@typespec/compiler").Tracer;
|
|
224
|
+
//# sourceMappingURL=lib.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../src/lib.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,UAAU;IACzB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IACvD,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,cAAc;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,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
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { createTypeSpecLibrary, paramMessage } from "@typespec/compiler";
|
|
2
|
+
const EmitterOptionsSchema = {
|
|
3
|
+
type: "object",
|
|
4
|
+
additionalProperties: true,
|
|
5
|
+
properties: {
|
|
6
|
+
namespace: { type: "string", nullable: true },
|
|
7
|
+
"package-dir": { type: "string", nullable: true },
|
|
8
|
+
flavor: { type: "string", nullable: true },
|
|
9
|
+
// service
|
|
10
|
+
"service-name": { type: "string", nullable: true },
|
|
11
|
+
"service-versions": { type: "array", items: { type: "string" }, nullable: true },
|
|
12
|
+
// header
|
|
13
|
+
"skip-special-headers": { type: "array", items: { type: "string" }, nullable: true },
|
|
14
|
+
// sample and test
|
|
15
|
+
"generate-samples": { type: "boolean", nullable: true, default: true },
|
|
16
|
+
"generate-tests": { type: "boolean", nullable: true, default: true },
|
|
17
|
+
"enable-sync-stack": { type: "boolean", nullable: true, default: true },
|
|
18
|
+
"stream-style-serialization": { type: "boolean", nullable: true, default: true },
|
|
19
|
+
"use-object-for-unknown": { type: "boolean", nullable: true, default: false },
|
|
20
|
+
// customization
|
|
21
|
+
"partial-update": { type: "boolean", nullable: true, default: false },
|
|
22
|
+
"models-subpackage": { type: "string", nullable: true },
|
|
23
|
+
"custom-types": { type: "string", nullable: true },
|
|
24
|
+
"custom-types-subpackage": { type: "string", nullable: true },
|
|
25
|
+
"customization-class": { type: "string", nullable: true },
|
|
26
|
+
polling: { type: "object", additionalProperties: true, nullable: true },
|
|
27
|
+
"group-etag-headers": { type: "boolean", nullable: true },
|
|
28
|
+
"enable-subclient": { type: "boolean", nullable: true, default: false },
|
|
29
|
+
"advanced-versioning": { type: "boolean", nullable: true, default: false },
|
|
30
|
+
"api-version": { type: "string", nullable: true },
|
|
31
|
+
"service-version-exclude-preview": { type: "boolean", nullable: true, default: false },
|
|
32
|
+
"dev-options": { type: "object", additionalProperties: true, nullable: true },
|
|
33
|
+
},
|
|
34
|
+
required: [],
|
|
35
|
+
};
|
|
36
|
+
export const $lib = createTypeSpecLibrary({
|
|
37
|
+
name: "@azure-tools/typespec-java",
|
|
38
|
+
diagnostics: {
|
|
39
|
+
// error
|
|
40
|
+
"unknown-error": {
|
|
41
|
+
severity: "error",
|
|
42
|
+
messages: {
|
|
43
|
+
default: paramMessage `An unknown error occurred. '${"errorMessage"}'`,
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
"invalid-java-sdk-dependency": {
|
|
47
|
+
severity: "error",
|
|
48
|
+
messages: {
|
|
49
|
+
default: "Java Development Kit (JDK) is not found in PATH. Please install JDK 17 or above. Microsoft Build of OpenJDK can be downloaded from https://learn.microsoft.com/java/openjdk/download",
|
|
50
|
+
jdkVersion: paramMessage `Java Development Kit (JDK) in PATH is version '${"javaVersion"}'. Please install JDK 17 or above. Microsoft Build of OpenJDK can be downloaded from https://learn.microsoft.com/java/openjdk/download`,
|
|
51
|
+
maven: "Apache Maven is not found in PATH. Apache Maven can be downloaded from https://maven.apache.org/download.cgi",
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
"multiple-server-not-supported": {
|
|
55
|
+
severity: "error",
|
|
56
|
+
messages: {
|
|
57
|
+
default: "Multiple server on client is not supported.",
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
"invalid-api-version": {
|
|
61
|
+
severity: "error",
|
|
62
|
+
messages: {
|
|
63
|
+
default: paramMessage `Invalid api-version option: '${"apiVersion"}'. The value should be an api-version, 'latest', or 'all'.`,
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
"unrecognized-type": {
|
|
67
|
+
severity: "error",
|
|
68
|
+
messages: {
|
|
69
|
+
default: paramMessage `Unrecognized type, kind '${"typeKind"}'. Updating the version of the emitter may resolve this issue.`,
|
|
70
|
+
unionType: paramMessage `Unrecognized type for Union, kind '${"typeKind"}'.`,
|
|
71
|
+
multipartFormData: paramMessage `Unrecognized type for multipart form data, kind '${"typeKind"}'.`,
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
// warning
|
|
75
|
+
"no-service": {
|
|
76
|
+
severity: "warning",
|
|
77
|
+
messages: {
|
|
78
|
+
default: "No service found in this TypeSpec. Client will not be generated.",
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
"auth-scheme-not-supported": {
|
|
82
|
+
severity: "warning",
|
|
83
|
+
messages: {
|
|
84
|
+
oauth2Unbranded: "OAuth2 auth scheme is not supported in unbranded. Client builder will fallback to use KeyCredential.",
|
|
85
|
+
apiKeyLocation: "ApiKey auth is currently only supported for ApiKeyLocation.header.",
|
|
86
|
+
basicAuthBranded: paramMessage `HTTP auth with '${"scheme"}' scheme is not supported for Azure. Azure service should use Oauth2Auth or ApiKeyAuth.`,
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
"protocol-api-not-generated": {
|
|
90
|
+
severity: "warning",
|
|
91
|
+
messages: {
|
|
92
|
+
multipartFormData: paramMessage `Operation '${"operationName"}' is of content-type 'multipart/form-data'. Protocol API is not usable and hence not generated.`,
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
"convenience-api-not-generated": {
|
|
96
|
+
severity: "warning",
|
|
97
|
+
messages: {
|
|
98
|
+
multipleContentType: paramMessage `Operation '${"operationName"}' can be invoked with multiple content-type. It is difficult to form a correct method signature for convenience API, and hence the convenience API is not generated.`,
|
|
99
|
+
jsonMergePatch: paramMessage `Operation '${"operationName"}' is of content-type 'application/merge-patch+json'. Enable 'stream-style-serialization' in emitter options.`,
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
"header-parameter-format-not-supported": {
|
|
103
|
+
severity: "warning",
|
|
104
|
+
messages: {
|
|
105
|
+
default: paramMessage `Header parameter format '${"format"}' is not supported.`,
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
emitter: {
|
|
110
|
+
options: EmitterOptionsSchema,
|
|
111
|
+
},
|
|
112
|
+
});
|
|
113
|
+
export const { name: LibName, reportDiagnostic, createDiagnostic, getTracer } = $lib;
|
|
114
|
+
//# sourceMappingURL=lib.js.map
|