-
Notifications
You must be signed in to change notification settings - Fork 46
Closed
Labels
4.6.0-M1Label for Milestone One Release of API Manager 4.6.0Label for Milestone One Release of API Manager 4.6.0Component/APIMType/Bug
Milestone
Description
Description
According to https://docs.stoplight.io/docs/spectral/d3482ff0ccae9-rules#rules-properties, the message can receive placeholders such as {{description}} and {{error}}, and they should be resolved before being displayed. Currently this is not working as expected.
Steps to Reproduce
- Start APIM
- Go to the admin portal, edit the default policy, add a blocking criteria when deploying.
- Edit
WSO2 API Management Guidelinesruleset'sapi-no-insecure-transportsrule to the following.
api-no-insecure-transports:
description: "API should not have insecure transports."
message: "{{description}}"
severity: "warn"
given: "$.data.transport.*"
then:
function: "pattern"
functionOptions:
notMatch: "http$"- Save the policy
- Go to the publisher portal, deploy the sample PizzaShack API.
- You'll get some ruleset violation errors
- For the
api-no-insecure-transportsrule, the message will display{{description}}not the actual description.
Version
4.5.0
Environment Details (with versions)
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
4.6.0-M1Label for Milestone One Release of API Manager 4.6.0Label for Milestone One Release of API Manager 4.6.0Component/APIMType/Bug