Merge branch 'main' of https://github.com/Azure/autorest into feature/detailed-stacktrace

This commit is contained in:
Timothee Guerin 2021-12-08 12:02:19 -08:00
Родитель ea84623c9d 54e9f1dc13
Коммит 0af2f8ed76
10 изменённых файлов: 52 добавлений и 41 удалений

Просмотреть файл

@ -1,11 +0,0 @@
{
"changes": [
{
"packageName": "@autorest/configuration",
"comment": "",
"type": "none"
}
],
"packageName": "@autorest/configuration",
"email": "tiguerin@microsoft.com"
}

Просмотреть файл

@ -43,7 +43,7 @@
},
"typings": "./dist/exports.d.ts",
"devDependencies": {
"@autorest/configuration": "~1.8.1",
"@autorest/configuration": "~1.8.2",
"@autorest/core": "~3.7.0",
"@autorest/common": "~1.4.1",
"@azure-tools/async-io": "~3.0.0",

Просмотреть файл

@ -1,6 +1,18 @@
{
"name": "@autorest/core",
"entries": [
{
"version": "3.7.2",
"tag": "@autorest/core_v3.7.2",
"date": "Tue, 07 Dec 2021 22:39:16 GMT",
"comments": {
"dependency": [
{
"comment": "Updating dependency \"@autorest/configuration\" from `~1.8.1` to `~1.8.2`"
}
]
}
},
{
"version": "3.7.2",
"tag": "@autorest/core_v3.7.2",

Просмотреть файл

@ -2,6 +2,10 @@
This log was last generated on Wed, 01 Dec 2021 22:39:16 GMT and should not be manually modified.
## 3.7.3
Tue, 07 Dec 2021 22:39:16 GMT
_Version update only_
## 3.7.2
Wed, 01 Dec 2021 22:39:16 GMT
@ -181,7 +185,7 @@ Fri, 09 Apr 2021 19:53:22 GMT
### Minor changes
- **Added** Semantic validator plugin
- **Added** Semantic validator plugin
- **Feature** Add sourcemap support for errors providing original location of problem
- **Added** support for emitting statistics of the specs and resuting model
@ -327,7 +331,7 @@ Tue, 4 Feb 2020 00:00:00 GMT
- rebuild to pick up latest data-store to fix the caching filename size
- OAI2-to-OAI3 converter update in perks.
- TransformerViaPointer was turning null into {}
- TransformerViaPointer was turning null into {}
- rebuild to fix NPM publishing problem.
- remove additionalProperties: false so v2 generators don't choke.
- rebuild to pick up perks change to fix multibyte utf8 over byte boundary problem

Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "@autorest/core",
"version": "3.7.2",
"version": "3.7.3",
"description": "AutoRest core module",
"engines": {
"node": ">=12.0.0"
@ -43,7 +43,7 @@
"typings": "./dist/exports.d.ts",
"devDependencies": {
"@autorest/common": "~1.4.1",
"@autorest/configuration": "~1.8.1",
"@autorest/configuration": "~1.8.2",
"@autorest/schemas": "~1.3.2",
"@autorest/test-utils": "~0.5.0",
"@azure-tools/async-io": "~3.0.0",

Просмотреть файл

@ -1,6 +1,18 @@
{
"name": "@autorest/configuration",
"entries": [
{
"version": "1.8.2",
"tag": "@autorest/configuration_v1.8.2",
"date": "Tue, 07 Dec 2021 16:36:46 GMT",
"comments": {
"patch": [
{
"comment": "**Remove** removal of additionalProperties=false for v2 generator "
}
]
}
},
{
"version": "1.8.1",
"tag": "@autorest/configuration_v1.8.1",

Просмотреть файл

@ -1,6 +1,13 @@
# Change Log - @autorest/configuration
This log was last generated on Tue, 30 Nov 2021 15:50:35 GMT and should not be manually modified.
This log was last generated on Tue, 07 Dec 2021 16:36:46 GMT and should not be manually modified.
## 1.8.2
Tue, 07 Dec 2021 16:36:46 GMT
### Patches
- **Remove** removal of additionalProperties=false for v2 generator
## 1.8.1
Tue, 30 Nov 2021 15:50:35 GMT

Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "@autorest/configuration",
"version": "1.8.1",
"version": "1.8.2",
"description": "Autorest configuration",
"main": "dist/index.js",
"typings": "dist/index.d.ts",

Просмотреть файл

@ -1,11 +1,9 @@
# Default Configuration - Configuration Bits...
Some kind of last-second tweaking to output the openapi document as a file?
If someone really needs to know what this is all about, ask @olydis (find him on github...)
``` yaml
```yaml
scope-openapi-document/emitter:
input-artifact: openapi-document
is-object: true
@ -15,23 +13,21 @@ scope-openapi-document/emitter:
($config.namespace ? $config.namespace.replace(/:/g,'_') : undefined) ||
$config["input-file"][0].split('/').reverse()[0].split('\\').reverse()[0].replace(/\.json$/, "")
scope-swagger-document/emitter:
input-artifact: swagger-document
is-object: true
# rethink that output-file part
output-uri-expr: |
$config["output-file"] ||
($config.namespace ? $config.namespace.replace(/:/g,'_') : undefined) ||
$config["input-file"][0].split('/').reverse()[0].split('\\').reverse()[0].replace(/\.json$/, "")
$config["output-file"] ||
($config.namespace ? $config.namespace.replace(/:/g,'_') : undefined) ||
$config["input-file"][0].split('/').reverse()[0].split('\\').reverse()[0].replace(/\.json$/, "")
```
This is a 'legacy' bit ... really not sure what this is for.
Doesn't seem all that dangerous either way, so I'll leave this here.
If someone really needs to know what this is all about, ask @olydis (find him on github...)
``` yaml
```yaml
scope-cm/emitter: # can remove once every generator depends on recent modeler
input-artifact: code-model-v1
is-object: true
@ -41,25 +37,16 @@ scope-cm/emitter: # can remove once every generator depends on recent modeler
Any files that are marked as 'preserved-files' are output back to disk again.
``` yaml
```yaml
# preserve files that have been asked to preserve
output-artifact:
- preserved-files
- binary-file
```
## Autorest Interactive
``` yaml $(interactive)
```yaml $(interactive)
use-extension:
"@microsoft.azure/autorest-interactive": "latest"
```
### remove additionalProperties:false for v2 generators
``` yaml
directive:
- from: swagger-document
where: $..*[?(@.additionalProperties===false)]
transform: delete $.additionalProperties
```

Просмотреть файл

@ -63,7 +63,7 @@ languages:
outputPath: ./output/python
oldArgs:
- --version:3.6.2
- --use:@autorest/modelerfour@4.21.1
- --use:@autorest/modelerfour@4.22.3
- --use:@autorest/python@5.12.0
- --modelerfour.treat-type-object-as-anything
newArgs:
@ -77,7 +77,7 @@ languages:
oldArgs:
- --v3
- --version:3.6.2
- --use:@autorest/modelerfour@4.21.1
- --use:@autorest/modelerfour@4.22.3
- --modelerfour.treat-type-object-as-anything
- --package-name:test-package
- --title:TestClient