-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add feature to omit generated SerDe methods (#957)
* Add feature to omit generated SerDe methods Adding extension x-ms-go-omit-serde-methods to a type will cause the code generator to skip emitting SerDe methods. Fixed handling of XML text data (x-ms-text extension). * regenerate xmlgroup * enable test * add clarifying comment
- Loading branch information
1 parent
42fb08a
commit 1bc784b
Showing
12 changed files
with
56 additions
and
101 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
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
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
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
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.
43 changes: 0 additions & 43 deletions
43
packages/autorest.go/test/databoxedge/armdataboxedge/zz_models_serde.go
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.
49 changes: 0 additions & 49 deletions
49
packages/autorest.go/test/storage/azblob/zz_models_serde.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
30 changes: 30 additions & 0 deletions
30
swagger/specification/storage/data-plane/Microsoft.BlobStorage/readme.go.md
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,30 @@ | ||
# Code Generation - Azure Blob SDK for Golang | ||
|
||
### Settings | ||
|
||
```yaml | ||
go: true | ||
clear-output-folder: false | ||
version: "^3.0.0" | ||
license-header: MICROSOFT_MIT_NO_VERSION | ||
input-file: "preview/2021-12-02/blob.json" | ||
credential-scope: "https://storage.azure.com/.default" | ||
openapi-type: "data-plane" | ||
verbose: true | ||
security: AzureKey | ||
honor-body-placement: true | ||
module: azblob | ||
modelerfour: | ||
group-parameters: false | ||
lenient-model-deduplication: true | ||
export-clients: true | ||
``` | ||
``` yaml | ||
directive: | ||
- from: swagger-document | ||
where: $.definitions | ||
transform: > | ||
$.BlobItemInternal["x-ms-go-omit-serde-methods"] = true; | ||
$.AccessPolicy["x-ms-go-omit-serde-methods"] = true; | ||
``` |
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 |
---|---|---|
|
@@ -94,4 +94,4 @@ directive: | |
- suppress: LongRunningOperationsWithLongRunningExtension | ||
- suppress: OAV107 | ||
``` | ||
--- | ||
--- |