Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added OnlyPayload property for method #522

Merged
merged 2 commits into from
Jun 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions openapi/code/method.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ func (m *Method) IsCrudCreate() bool {
return m.operation.Crud == "create"
}

func (m *Method) JsonOnly() bool {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
func (m *Method) JsonOnly() bool {
func (m *Method) IsJsonOnly() bool {

return m.operation.JsonOnly
}

// Wait returns definition for long-running operation
func (m *Method) Wait() *Wait {
if m.wait == nil {
Expand Down
1 change: 1 addition & 0 deletions openapi/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ type Operation struct {
Pagination *Pagination `json:"x-databricks-pagination,omitempty"`
Shortcut bool `json:"x-databricks-shortcut,omitempty"`
Crud string `json:"x-databricks-crud,omitempty"`
JsonOnly bool `json:"x-databricks-cli-json-only,omitempty"`
Summary string `json:"summary,omitempty"`
OperationId string `json:"operationId"`
Tags []string `json:"tags"`
Expand Down