Skip to content

Commit

Permalink
[Synapse][Spark] - Fix null reference exception due to some nullable …
Browse files Browse the repository at this point in the history
…properties (#17112)

Co-authored-by: Dongwei Wang <dongwwa@microsoft.com>
  • Loading branch information
idear1203 and Dongwei Wang authored Nov 23, 2020
1 parent 4724ab9 commit 7c1669e
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 67 deletions.
2 changes: 1 addition & 1 deletion sdk/synapse/Azure.Analytics.Synapse.Spark/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Release History

## 1.0.0-beta.1 (Unreleased)

- This release contains bug fixes to improve quality.

## 1.0.0-preview.2 (2020-09-01)
- This release contains bug fixes to improve quality.
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 2 additions & 16 deletions sdk/synapse/Azure.Analytics.Synapse.Spark/src/autorest.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,11 @@ Run `dotnet build /t:GenerateCode` to generate code.
> see https://aka.ms/autorest
```yaml
repo: https://github.com/Azure/azure-rest-api-specs/blob/fdf4bbfd7a73b28960d3a62490440345d6f2e8e3
repo: https://github.com/Azure/azure-rest-api-specs/blob/a213469a74fff7aba237849bde2de7dffbdf970f
```
``` yaml
public-clients: true
input-file:
- $(repo)/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/sparkJob.json
```
## Swagger workarounds
### Add nullable annotations
``` yaml
directive:
from: swagger-document
where: $.definitions.SparkBatchJob
transform: >
$.properties.appId["x-nullable"] = true;
$.properties.appInfo["x-nullable"] = true;
$.properties.log["x-nullable"] = true;
````
```

0 comments on commit 7c1669e

Please sign in to comment.