-
Notifications
You must be signed in to change notification settings - Fork 837
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* adding swagger * updating swagger with autorest command * more fixes * fixing directive * updating swagger.md * fixed swagger * fixing directive * add dataplane flag * updating swagger * commented out tests, passes remaining * addressing chris hamons feedback * undoing changes * undoing the rest of changes * updating generated code * formatting gen code * more formatting corrections * one last formatting correction
- Loading branch information
1 parent
3d6b5ce
commit 658d8c5
Showing
5 changed files
with
49 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
## Go | ||
|
||
These settings apply only when `--go` is specified on the command line. | ||
|
||
<!-- Original autorest command used by Chris Scott --> | ||
<!-- autorest --use=@autorest/go@4.0.0-preview.20 https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/cosmos-db/data-plane/readme.md --tag=package-2019-02 --file-prefix="zz_generated_" --modelerfour.lenient-model-deduplication --license-header=MICROSOFT_MIT_NO_VERSION --output-folder=aztables --module=aztables --openapi-type="data-plane" --credential-scope=none --> | ||
|
||
``` yaml | ||
go: true | ||
version: "^3.0.0" | ||
input-file: https://github.com/Azure/azure-rest-api-specs/blob/d744b6bcb95ab4034832ded556dbbe58f4287c5b/specification/cosmos-db/data-plane/Microsoft.Tables/preview/2019-02-02/table.json | ||
license-header: MICROSOFT_MIT_NO_VERSION | ||
clear-output-folder: false | ||
output-folder: aztable | ||
file-prefix: "zz_generated_" | ||
# namespace: aztable | ||
tag: package-2019-02 | ||
credential-scope: none | ||
use: "@autorest/go@4.0.0-preview.23" | ||
openapi-type: data-plane | ||
``` | ||
<!-- This change will have to be made by hand for now, leaving this directive in case it is useful later --> | ||
<!-- | ||
``` yaml | ||
directive: | ||
# dynamically change TableEntityProperties from map[string]interface{} to []byte | ||
- from: swagger-document | ||
where: $.definitions.TableEntityProperties | ||
transform: >- | ||
$["type"] = "string"; | ||
$["format"] = "byte"; | ||
delete $.additionalProperties; | ||
``` --> | ||
### Go multi-api | ||
``` yaml $(go) && $(multiapi) | ||
batch: | ||
- tag: package-2019-02 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.