@azure-tools/typespec-java 0.25.0 → 0.26.0

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/readme.md CHANGED
@@ -1,38 +1,22 @@
1
1
  # Prerequisite
2
2
 
3
- Install [Node.js](https://nodejs.org/en/download/) 20 or above. (Verify by `node --version`)
3
+ Install [Node.js](https://nodejs.org/en/download/) 20 or above. (Verify by running `node --version`)
4
4
 
5
- Install [Java](https://docs.microsoft.com/java/openjdk/download) 11 or above. (Verify by `java --version`)
5
+ Install [Java](https://docs.microsoft.com/java/openjdk/download) 11 or above. (Verify by running `java --version`)
6
6
 
7
- Install [TypeSpec](https://github.com/microsoft/typespec/) 0.62.
7
+ Install [Maven](https://maven.apache.org/install.html). (Verify by running `mvn --version`)
8
+
9
+ Install [TypeSpec](https://typespec.io/) 0.62.
8
10
 
9
11
  # Initialize TypeSpec Project
10
12
 
11
- Follow [TypeSpec Getting Started](https://github.com/microsoft/typespec/#using-node--npm) to initialize your TypeSpec project.
13
+ Follow [TypeSpec Getting Started](https://typespec.io/docs/) to initialize your TypeSpec project.
12
14
 
13
15
  Make sure `npx tsp compile .` runs correctly.
14
16
 
15
17
  # Add TypeSpec-Java
16
18
 
17
- Make sure the version of [TypeSpec-java release](https://github.com/Azure/autorest.java/releases) depends on same version of "@typespec/compiler" as in your TypeSpec project.
18
-
19
- Modify `package.json`, add one line under `dependencies`:
20
- ```diff
21
- "dependencies": {
22
- "@typespec/compiler": "latest",
23
- "@typespec/rest": "latest",
24
- "@azure-tools/typespec-azure-core": "latest",
25
- + "@azure-tools/typespec-java": "latest"
26
- },
27
- ```
28
-
29
- Run `npm install` again to install `@azure-tools/typespec-java`.
30
-
31
- Modify (or create) `tspconfig.yaml`, specify emit as `@azure-tools/typespec-java`:
32
- ```diff
33
- emit:
34
- - "@azure-tools/typespec-java"
35
- ```
19
+ Run the command `npm install @azure-tools/typespec-java`.
36
20
 
37
21
  # Generate Java
38
22
 
@@ -54,17 +38,9 @@ options:
54
38
  emitter-output-dir: "{project-root}/azure-ai-language-authoring"
55
39
  namespace: "com.azure.ai.language.authoring"
56
40
  service-name: "Authoring"
57
- service-versions:
58
- - "2022-05-15-preview"
59
- enable-sync-stack: true
60
- stream-style-serialization: true
61
41
  generate-samples: true
62
42
  generate-tests: true
63
- examples-dir: "{project-root}/examples"
64
43
  partial-update: false
65
- models-subpackage: "models"
66
- custom-types-subpackage: "implementation.models"
67
- custom-types: InternalModel1,InternalModel2
68
44
  api-version: "2023-11-01"
69
45
  ```
70
46