Skip to content

Commit 7dd80d1

Browse files
authored
Fixed code generation of primitive types (#354)
## Changes <!-- Summary of your changes that are easy to understand --> Use primitive types in response. ## Tests <!-- How is this tested? Please see the checklist below and also describe any other relevant tests --> SDK generation at current spec: `deco openapi generate-sdk py --openapi-spec 09a7fa63d9ae243e5407941f200960ca14d48b07` - [ ] `make test` run locally - [ ] `make fmt` applied - [ ] relevant integration tests applied
1 parent 9369aee commit 7dd80d1

File tree

4 files changed

+12
-13
lines changed

4 files changed

+12
-13
lines changed

.codegen/service.py.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ self._api.do('{{.Verb}}',
310310
{{define "method-return-type" -}}
311311
{{if and .Wait (and (not .IsCrudRead) (not (eq .SnakeName "get_run"))) }} -> Wait[{{.Wait.Poll.Response.PascalName}}]
312312
{{- else if .Response}} -> {{if .Response.ArrayValue -}}
313-
Iterator[{{.Response.ArrayValue.PascalName}}]
313+
Iterator[{{template "type" .Response.ArrayValue}}]
314314
{{- else if .Pagination -}}
315315
Iterator[{{.Pagination.Entity.PascalName}}]
316316
{{- else -}}

databricks/sdk/service/catalog.py

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

databricks/sdk/service/provisioning.py

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

databricks/sdk/service/sql.py

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)