You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@autorest/java

Package Overview
Dependencies
Maintainers
2
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@autorest/java - npm Package Compare versions

Comparing version
4.1.27
to
4.1.28
+2
-2
androidgen/package.json

@@ -7,4 +7,4 @@ {

"autorest": "autorest",
"start": "java --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED -jar target/azure-autorest-androidgen-jar-with-dependencies.jar",
"debug": "java --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,quiet=y,address=5005 -jar target/azure-autorest-androidgen-jar-with-dependencies.jar",
"start": "java -jar target/azure-autorest-androidgen-jar-with-dependencies.jar",
"debug": "java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,quiet=y,address=5005 -jar target/azure-autorest-androidgen-jar-with-dependencies.jar",
"build": "mvn package -Dlocal"

@@ -11,0 +11,0 @@ },

@@ -7,4 +7,4 @@ {

"autorest": "autorest",
"start": "java --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED -jar target/azure-autorest-fluentgen-jar-with-dependencies.jar",
"debug": "java --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,quiet=y,address=5005 -jar target/azure-autorest-fluentgen-jar-with-dependencies.jar",
"start": "java -jar target/azure-autorest-fluentgen-jar-with-dependencies.jar",
"debug": "java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,quiet=y,address=5005 -jar target/azure-autorest-fluentgen-jar-with-dependencies.jar",
"build": "mvn package -P local"

@@ -11,0 +11,0 @@ },

@@ -79,2 +79,3 @@ #### Fluentgen

graal-vm-config: true
stream-style-serialization: false
```

@@ -7,4 +7,4 @@ {

"autorest": "autorest",
"start": "java --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED -jar target/azure-autorest-javagen-jar-with-dependencies.jar",
"debug": "java --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,quiet=y,address=5005 -jar target/azure-autorest-javagen-jar-with-dependencies.jar",
"start": "java -jar target/azure-autorest-javagen-jar-with-dependencies.jar",
"debug": "java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,quiet=y,address=5005 -jar target/azure-autorest-javagen-jar-with-dependencies.jar",
"build": "mvn package -Dlocal"

@@ -11,0 +11,0 @@ },

{
"name": "@autorest/java",
"version": "4.1.27",
"version": "4.1.28",
"description": "The Java extension for classic generators in AutoRest.",
"scripts": {
"autorest": "autorest",
"start": "java --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED -jar javagen/target/azure-autorest-javagen-jar-with-dependencies.jar",
"debug": "java --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,quiet=y,address=5005 -jar javagen/target/azure-autorest-javagen-jar-with-dependencies.jar",
"start": "java -jar javagen/target/azure-autorest-javagen-jar-with-dependencies.jar",
"debug": "java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,quiet=y,address=5005 -jar javagen/target/azure-autorest-javagen-jar-with-dependencies.jar",
"build": "mvn package -P local",

@@ -43,4 +43,4 @@ "generate": "./generate",

"autorest": "^3.7.1",
"@microsoft.azure/autorest.testserver": "3.3.48"
"@microsoft.azure/autorest.testserver": "3.3.49"
}
}

@@ -69,3 +69,2 @@ # Overview

|------------------|-------------|
|`--enable-xml`|Generates models and clients that can be sent in XML over the wire. Default is false|
|`--client-side-validations`|Generate validations for required parameters and required model properties. Default is false.|

@@ -84,10 +83,7 @@ |`--generate-client-as-impl`|Append "Impl" to the names of service clients and method groups and place them in the `implementation` sub-package. Default is false.|

|`--service-interface-as-public`|Indicates whether to generate service interfaces as public. This resolves `SecurityManager` issues to prevent reflectively access non-public APIs. Default is true.|
|`--require-x-ms-flattened-to-flatten`|Indicates whether `x-ms-flattened` is required to annotated a class with `@JsonFlatten` if the discriminator has `.` in its name. Default is false.|
|`--client-flattened-annotation-target=TYPE,FIELD,NONE,DISABLED`|Indicates the target of `@JsonFlatten` annotation for `x-ms-client-flatten`. Default is `TYPE`. If value is `FIELD`, it implies `require-x-ms-flattened-to-flatten=true`.|
|`--client-flattened-annotation-target=TYPE,FIELD,NONE,DISABLED`|Indicates the target of `@JsonFlatten` annotation for `x-ms-client-flatten`. Default is `TYPE`.|
|`--disable-client-builder`|Indicates whether to disable generating the `ClientBuilder` class. This is for SDK that already contains a hand-written `ClientBuilder` class. Default is false.|
|`--skip-formatting`|Indicates whether to skip formatting Java file. Default is false.|
|`--polling`|Configures how to generate long running operations. See [Polling Configuration](#polling-configuration) to see more details on how to use this flag.|
|`--service-name`|Service name used in Client class and other documentations. If not provided, service name is deduced from `title` configure (from swagger or readme).|
|`--partial-update`|Indicates whether to support partial update for `Client`/`AsyncClient` classes and `ClientBuilder` class.|
|`--pass-discriminator-to-child-deserialization`|Indicates whether the discriminator property is passed to subclass deserialization. Default is false.|
|`--default-http-exception-type`|The fully-qualified class name that should be used as the default HTTP exception type. The class must extend from `HttpResponseException`.|

@@ -117,3 +113,2 @@ |`--use-default-http-status-code-to-exception-type-mapping`|Indicates whether a default HTTP status code to exception mapping should be used if one isn't provided.|

`generate-tests` option can be used for generating tests for client.
`generate-models` option can be used for generating models.

@@ -345,5 +340,2 @@ See [documentation](docs/generate/dataplane.md) for frequently used options, and their effect on generated clients.

settings:
- key: enable-xml
type: bool
description: Generates models and clients that can be sent in XML over the wire. Default is false
- key: client-side-validations

@@ -387,9 +379,6 @@ type: bool

type: string
description: \[TYPE,FIELD,NONE,DISABLED] Indicates the target of `@JsonFlatten` annotation for `x-ms-client-flatten`. Default is `TYPE`. If value is `FIELD`, it implies `require-x-ms-flattened-to-flatten=true`.
description: \[TYPE,FIELD,NONE,DISABLED] Indicates the target of `@JsonFlatten` annotation for `x-ms-client-flatten`. Default is `TYPE`.
- key: disable-client-builder
type: bool
description: Indicates whether to disable generating the `ClientBuilder` class. This is for SDK that already contains a hand-written `ClientBuilder` class. Default is false.
- key: skip-formatting
type: bool
description: Indicates whether to skip formatting Java file. Default is false.
- key: polling

@@ -396,0 +385,0 @@ type: string

{
"name": "@azure-tools/typespec-java",
"version": "0.13.4",
"version": "0.15.6",
"description": "TypeSpec library for emitting Java client from the TypeSpec REST protocol binding",

@@ -48,9 +48,9 @@ "keywords": [

"peerDependencies": {
"@typespec/compiler": ">=0.52.0 <1.0.0",
"@typespec/http": ">=0.52.0 <1.0.0",
"@typespec/rest": ">=0.52.0 <1.0.0",
"@typespec/openapi": ">=0.52.0 <1.0.0",
"@typespec/versioning": ">=0.52.0 <1.0.0",
"@azure-tools/typespec-azure-core": ">=0.38.0 <1.0.0",
"@azure-tools/typespec-client-generator-core": ">=0.39.0 <1.0.0"
"@typespec/compiler": ">=0.53.1 <1.0.0",
"@typespec/http": ">=0.53.0 <1.0.0",
"@typespec/rest": ">=0.53.0 <1.0.0",
"@typespec/openapi": ">=0.53.0 <1.0.0",
"@typespec/versioning": ">=0.53.0 <1.0.0",
"@azure-tools/typespec-azure-core": ">=0.40.0 <1.0.0",
"@azure-tools/typespec-client-generator-core": ">=0.40.0 <1.0.0"
},

@@ -64,22 +64,22 @@ "dependencies": {

"prettier": "~3.2.5",
"@types/lodash": "~4.14.202",
"@types/lodash": "~4.17.0",
"@types/js-yaml": "~4.0.9",
"@types/mocha": "~10.0.6",
"@types/node": "~20.11.16",
"@types/node": "~20.11.30",
"c8": "~9.1.0",
"eslint": "~8.56.0",
"mocha": "~10.2.0",
"eslint": "~8.57.0",
"mocha": "~10.3.0",
"rimraf": "~5.0.5",
"typescript": "~5.3.3",
"@typescript-eslint/parser": "~6.21.0",
"@typescript-eslint/eslint-plugin": "~6.21.0",
"typescript": "~5.4.3",
"@typescript-eslint/parser": "~7.4.0",
"@typescript-eslint/eslint-plugin": "~7.4.0",
"eslint-plugin-deprecation": "~2.0.0",
"@azure-tools/typespec-azure-core": "0.39.0",
"@azure-tools/typespec-client-generator-core": "0.39.0",
"@typespec/compiler": "0.53.0",
"@typespec/http": "0.53.0",
"@typespec/openapi": "0.53.0",
"@typespec/rest": "0.53.0",
"@typespec/versioning": "0.53.0"
"@azure-tools/typespec-azure-core": "0.40.0",
"@azure-tools/typespec-client-generator-core": "0.40.0",
"@typespec/compiler": "0.54.0",
"@typespec/http": "0.54.0",
"@typespec/openapi": "0.54.0",
"@typespec/rest": "0.54.0",
"@typespec/versioning": "0.54.0"
}
}

@@ -7,3 +7,3 @@ # Prerequisite

Install [TypeSpec](https://github.com/microsoft/typespec/) 0.53.
Install [TypeSpec](https://github.com/microsoft/typespec/) 0.54.

@@ -61,3 +61,3 @@ # Initialize TypeSpec Project

enable-sync-stack: true
stream-style-serialization: false
stream-style-serialization: true
generate-samples: true

@@ -150,2 +150,2 @@ generate-tests: true

rm package-lock.json
```
```

@@ -12,8 +12,8 @@ {

"dependencies": {
"@azure-tools/cadl-ranch-specs": "0.29.0",
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.13.4.tgz"
"@azure-tools/cadl-ranch-specs": "0.31.5",
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.15.6.tgz"
},
"devDependencies": {
"@typespec/prettier-plugin-typespec": "~0.53.0",
"@azure-tools/typespec-azure-resource-manager": "~0.39.0",
"@typespec/prettier-plugin-typespec": "~0.54.0",
"@azure-tools/typespec-azure-resource-manager": "~0.40.0",
"prettier-plugin-organize-imports": "3.2.4",

@@ -23,11 +23,11 @@ "prettier": "~3.2.5"

"overrides": {
"@typespec/compiler": ">=0.52.0 <1.0.0",
"@typespec/http": ">=0.52.0 <1.0.0",
"@typespec/rest": ">=0.52.0 <1.0.0",
"@typespec/versioning": ">=0.52.0 <1.0.0",
"@typespec/openapi": ">=0.52.0 <1.0.0",
"@azure-tools/typespec-azure-core": ">=0.38.0 <1.0.0",
"@azure-tools/typespec-client-generator-core": ">=0.38.0 <1.0.0"
"@typespec/compiler": ">=0.53.1 <1.0.0",
"@typespec/http": ">=0.53.0 <1.0.0",
"@typespec/rest": ">=0.53.0 <1.0.0",
"@typespec/versioning": ">=0.53.0 <1.0.0",
"@typespec/openapi": ">=0.53.0 <1.0.0",
"@azure-tools/typespec-azure-core": ">=0.34.0 <1.0.0",
"@azure-tools/typespec-client-generator-core": ">=0.34.0 <1.0.0"
},
"private": true
}

@@ -51,3 +51,3 @@ # Install and Test on TypeSpec-Java

`Main.java` under `./typespec-extension` would load this `code-model.yaml` file as default, and run the Java code to generate the code (`google-java-format` used in the module requires adding `--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED` to VM options).
`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.

@@ -54,0 +54,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