elsloo closed pull request #2694: Fix Docs invalid JSON missing commas and
escapes
URL: https://github.com/apache/trafficcontrol/pull/2694
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/docs/source/api/v12/deliveryservice_regex.rst
b/docs/source/api/v12/deliveryservice_regex.rst
index ccd12c46a..127db413a 100644
--- a/docs/source/api/v12/deliveryservice_regex.rst
+++ b/docs/source/api/v12/deliveryservice_regex.rst
@@ -55,7 +55,7 @@ Delivery Service Regexes
"regexes": [
{
"type": "HOST_REGEXP",
- "pattern": ".*\.foo-bar\..*",
+ "pattern": ".*\\.foo-bar\\..*",
"setNumber": 0
},
{
@@ -111,7 +111,7 @@ Delivery Service Regexes
"id": 852,
"type": 18,
"typeName": "HOST_REGEXP",
- "pattern": ".*\.foo-bar\..*",
+ "pattern": ".*\\.foo-bar\\..*",
"setNumber": 0
},
{
@@ -168,7 +168,7 @@ Delivery Service Regexes
"id": 852,
"type": 18,
"typeName": "HOST_REGEXP",
- "pattern": ".*\.foo-bar\..*",
+ "pattern": ".*\\.foo-bar\\..*",
"setNumber": 0
}
]
@@ -207,8 +207,8 @@ Delivery Service Regexes
**Request Example** ::
{
- "pattern": ".*\.foo-bar\..*"
- "type": 18
+ "pattern": ".*\\.foo-bar\\..*",
+ "type": 18,
"setNumber": 0
}
@@ -237,7 +237,7 @@ Delivery Service Regexes
"id": 852,
"type": 18,
"typeName": "HOST_REGEXP",
- "pattern": ".*\.foo-bar\..*",
+ "pattern": ".*\\.foo-bar\\..*",
"setNumber": 0
},
"alerts":[
@@ -283,8 +283,8 @@ Delivery Service Regexes
**Request Example** ::
{
- "pattern": ".*\.foo-bar\..*"
- "type": 18
+ "pattern": ".*\\.foo-bar\\..*",
+ "type": 18,
"setNumber": 0
}
@@ -313,7 +313,7 @@ Delivery Service Regexes
"id": 852,
"type": 18,
"typeName": "HOST_REGEXP",
- "pattern": ".*\.foo-bar\..*",
+ "pattern": ".*\\.foo-bar\\..*",
"setNumber": 0
},
"alerts":[
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services