@autorest/java
Advanced tools
+2
-2
| { | ||
| "name": "@autorest/java", | ||
| "version": "4.1.25", | ||
| "version": "4.1.26", | ||
| "description": "The Java extension for classic generators in AutoRest.", | ||
@@ -43,4 +43,4 @@ "scripts": { | ||
| "autorest": "^3.0.0", | ||
| "@microsoft.azure/autorest.testserver": "3.3.45" | ||
| "@microsoft.azure/autorest.testserver": "3.3.48" | ||
| } | ||
| } |
| { | ||
| "name": "@azure-tools/typespec-java", | ||
| "version": "0.12.0", | ||
| "version": "0.12.2", | ||
| "description": "TypeSpec library for emitting Java client from the TypeSpec REST protocol binding", | ||
@@ -45,11 +45,12 @@ "keywords": [ | ||
| "!dist/test/**", | ||
| "target/azure-typespec-extension-jar-with-dependencies.jar" | ||
| "target/emitter.jar" | ||
| ], | ||
| "peerDependencies": { | ||
| "@typespec/compiler": ">=0.50.0 <1.0.0", | ||
| "@typespec/rest": ">=0.50.0 <1.0.0", | ||
| "@typespec/openapi": ">=0.50.0 <1.0.0", | ||
| "@typespec/versioning": ">=0.50.0 <1.0.0", | ||
| "@azure-tools/typespec-azure-core": ">=0.36.0 <1.0.0", | ||
| "@azure-tools/typespec-client-generator-core": ">=0.36.1 <1.0.0" | ||
| "@typespec/compiler": ">=0.51.0 <1.0.0", | ||
| "@typespec/http": ">=0.51.0 <1.0.0", | ||
| "@typespec/rest": ">=0.51.0 <1.0.0", | ||
| "@typespec/openapi": ">=0.51.0 <1.0.0", | ||
| "@typespec/versioning": ">=0.51.0 <1.0.0", | ||
| "@azure-tools/typespec-azure-core": ">=0.37.2 <1.0.0", | ||
| "@azure-tools/typespec-client-generator-core": ">=0.37.0 <1.0.0" | ||
| }, | ||
@@ -66,12 +67,19 @@ "dependencies": { | ||
| "@types/mocha": "~10.0.6", | ||
| "@types/node": "~20.10.0", | ||
| "@types/node": "~20.10.3", | ||
| "c8": "~8.0.1", | ||
| "eslint": "~8.54.0", | ||
| "eslint": "~8.55.0", | ||
| "mocha": "~10.2.0", | ||
| "rimraf": "~5.0.5", | ||
| "typescript": "~5.3.2", | ||
| "@typescript-eslint/parser": "~6.12.0", | ||
| "@typescript-eslint/eslint-plugin": "~6.12.0", | ||
| "eslint-plugin-deprecation": "~2.0.0" | ||
| "typescript": "~5.3.3", | ||
| "@typescript-eslint/parser": "~6.13.2", | ||
| "@typescript-eslint/eslint-plugin": "~6.13.2", | ||
| "eslint-plugin-deprecation": "~2.0.0", | ||
| "@azure-tools/typespec-azure-core": "0.37.2", | ||
| "@azure-tools/typespec-client-generator-core": "0.37.0", | ||
| "@typespec/compiler": "0.51.0", | ||
| "@typespec/http": "0.51.0", | ||
| "@typespec/openapi": "0.51.0", | ||
| "@typespec/rest": "0.51.0", | ||
| "@typespec/versioning": "0.51.0" | ||
| } | ||
| } |
@@ -7,3 +7,3 @@ # Prerequisite | ||
| Install [TypeSpec](https://github.com/microsoft/typespec/) 0.47. | ||
| Install [TypeSpec](https://github.com/microsoft/typespec/) 0.51. | ||
@@ -65,4 +65,4 @@ # Initialize TypeSpec Project | ||
| examples-directory: "./examples" | ||
| namer: false | ||
| partial-update: false | ||
| models-subpackage: "models" | ||
| custom-types-subpackage: "implementation.models" | ||
@@ -69,0 +69,0 @@ custom-types: InternalModel1,InternalModel2 |
@@ -12,22 +12,21 @@ { | ||
| "dependencies": { | ||
| "@typespec/openapi": ">=0.50.0 <1.0.0", | ||
| "@azure-tools/typespec-autorest": ">=0.36.1 <1.0.0", | ||
| "@azure-tools/cadl-ranch-specs": "0.27.1", | ||
| "@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.12.0.tgz" | ||
| "@azure-tools/cadl-ranch-specs": "0.28.6", | ||
| "@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.12.2.tgz" | ||
| }, | ||
| "devDependencies": { | ||
| "@typespec/prettier-plugin-typespec": "~0.50.0", | ||
| "@typespec/prettier-plugin-typespec": "~0.51.0", | ||
| "prettier-plugin-organize-imports": "3.2.4", | ||
| "prettier": "~3.1.0" | ||
| "prettier": "~3.1.0", | ||
| "@azure-tools/typespec-azure-resource-manager": ">=0.37.1 <1.0.0" | ||
| }, | ||
| "overrides": { | ||
| "@typespec/compiler": ">=0.50.0 <1.0.0", | ||
| "@typespec/http": ">=0.50.0 <1.0.0", | ||
| "@typespec/rest": ">=0.50.0 <1.0.0", | ||
| "@typespec/versioning": ">=0.50.0 <1.0.0", | ||
| "@typespec/openapi": ">=0.50.0 <1.0.0", | ||
| "@azure-tools/typespec-azure-core": ">=0.36.0 <1.0.0", | ||
| "@azure-tools/typespec-client-generator-core": ">=0.36.0 <1.0.0" | ||
| "@typespec/compiler": ">=0.51.0 <1.0.0", | ||
| "@typespec/http": ">=0.51.0 <1.0.0", | ||
| "@typespec/rest": ">=0.51.0 <1.0.0", | ||
| "@typespec/versioning": ">=0.51.0 <1.0.0", | ||
| "@typespec/openapi": ">=0.51.0 <1.0.0", | ||
| "@azure-tools/typespec-azure-core": ">=0.37.2 <1.0.0", | ||
| "@azure-tools/typespec-client-generator-core": ">=0.37.0 <1.0.0" | ||
| }, | ||
| "private": true | ||
| } |
@@ -41,2 +41,17 @@ # Install and Test on TypeSpec-Java | ||
| ## Debugging Java code | ||
| `tspconfig.yaml` already configured | ||
| ```yaml | ||
| dev-options: | ||
| generate-code-model: true | ||
| ``` | ||
| With this option, a `code-model.yaml` file is kept in `./typespec-tests/tsp-output/` folder after `tsp compile <target.tsp>`. | ||
| `Main.java` under `./typespec-extension` would load this `code-model.yaml` file as default, and run the Java code to generate the code. | ||
| At this stage, one can modify or debug the Java code (`./typespec-extension/src/main/java/`) in IDE. The code generated in `./typespec-tests/tsp-output/` would reflect the modified Java code. | ||
| Notice: there maybe some difference of other option between `tspconfig.yaml` and `EmitterOptions.java`. Remember to temporary modify `EmitterOptions.java` to reflect the option in `tspconfig.yaml` when running `Main.java` this way. (e.g. set `streamStyleSerialization` to `true`) | ||
| ## Troubleshooting | ||
@@ -43,0 +58,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
35154818
0.05%