Skip to content

Commit

Permalink
cmd/client: Use json rawmessage for arbtrary payloads (#184)
Browse files Browse the repository at this point in the history
Closes #182

Signed-off-by: Stanislav Zapolsky <[email protected]>
  • Loading branch information
stszap authored and aeneasr committed May 4, 2019
1 parent 5c34958 commit a55e4d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/rules_import.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ Usage example:
Match: &models.SwaggerRuleMatch{Methods: r.Match.Methods, URL: r.Match.URL},
Authorizer: &models.SwaggerRuleHandler{
Handler: r.Authorizer.Handler,
Config: models.RawMessage(r.Authorizer.Config),
Config: json.RawMessage(r.Authorizer.Config),
},
Authenticators: rh,
CredentialsIssuer: &models.SwaggerRuleHandler{
Handler: r.CredentialsIssuer.Handler,
Config: models.RawMessage(r.CredentialsIssuer.Config),
Config: json.RawMessage(r.CredentialsIssuer.Config),
},
Upstream: &models.Upstream{
URL: r.Upstream.URL,
Expand Down

0 comments on commit a55e4d1

Please sign in to comment.