autorest
Version:
The AutoRest tool generates client libraries for accessing RESTful web services. Input to AutoRest is an OpenAPI spec that describes the REST API.
53 lines (43 loc) • 1.65 kB
Markdown
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
scope-openapi-document/emitter:
input-artifact: openapi-document
is-object: true
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$/, "")
scope-swagger-document/emitter:
input-artifact: swagger-document
is-object: true
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$/, "")
```
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
scope-cm/emitter:
input-artifact: code-model-v1
is-object: true
output-uri-expr: |
"code-model-v1"
```
Any files that are marked as 'preserved-files' are output back to disk again.
```yaml
output-artifact:
- preserved-files
- binary-file
```
```yaml $(interactive)
use-extension:
"@microsoft.azure/autorest-interactive": "latest"
```