Omit private key from session output

This commit is contained in:
Jeff Mitchell committed 2020-09-20 21:23:38 -04:00
1 parent 4669c95999
commit 5370111336
3 files changed
+9 -1

No files matched your search

+5
View File
@@ -85,6 +85,10 @@ type structInfo struct {
// createResponseTypes controls for which structs response types are created
createResponseTypes bool
// fieldFilter is a set of field names that will not result in generated API
// fields
fieldFilter []string
}
var inputStructs = []*structInfo{
@@ -367,6 +371,7 @@ var inputStructs = []*structInfo{
},
pathArgs: []string{"session"},
createResponseTypes: true,
fieldFilter: []string{"private_key"},
},
{
inProto: &sessions.SessionState{},