Skip to content

Commit

Permalink
Merge pull request #180 from jhernand/dont_consider_status_and_error_…
Browse files Browse the repository at this point in the history
…builtin_request_parameters

Don't consider `Status` and `Error` built-in request parameters
  • Loading branch information
jhernand authored Apr 1, 2022
2 parents 6859294 + 4a2061a commit c8c7d59
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions pkg/generators/golang/clients_generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -1252,6 +1252,4 @@ var builtinGetters = map[string]interface{}{
}

var builtinSetters = map[string]interface{}{
"Error": nil,
"Status": nil,
}
2 changes: 1 addition & 1 deletion pkg/generators/golang/names_calculator.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,4 @@ func (c *NamesCalculator) Private(name *names.Name) string {
// File converts the given name into an string, following the rules for Go source files.
func (c *NamesCalculator) File(name *names.Name) string {
return name.LowerJoined("_")
}
}
2 changes: 1 addition & 1 deletion pkg/generators/golang/types_generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -671,4 +671,4 @@ func (g *TypesGenerator) listName(typ *concepts.Type) string {
typeName = g.names.Public(typ.Name())
}
return typeName + "List"
}
}

0 comments on commit c8c7d59

Please sign in to comment.