Skip to content

Commit

Permalink
feat: adding the new install prop to our x-code-samples examples
Browse files Browse the repository at this point in the history
  • Loading branch information
erunion committed Sep 13, 2022
1 parent c84b300 commit 08a7646
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions 3.0/json/readme-extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
{
"name": "Custom cURL snippet",
"language": "curl",
"code": "curl -X POST https://api.example.com/v2/alert"
"code": "curl -X POST https://api.example.com/v2/alert",
"install": "brew install curl"
},
{
"language": "curl",
Expand All @@ -72,7 +73,8 @@
{
"name": "Custom cURL snippet",
"language": "curl",
"code": "curl -X POST https://api.example.com/v2/alert"
"code": "curl -X POST https://api.example.com/v2/alert",
"install": "brew install curl"
},
{
"language": "curl",
Expand Down
2 changes: 2 additions & 0 deletions 3.0/yaml/readme-extensions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ paths:
- name: Custom cURL snippet
language: curl
code: curl -X POST https://api.example.com/v2/alert
install: brew install curl
- language: curl
code: |-
# This custom cURL snippet does not have a custom name so it has the name of "Default #2".
Expand All @@ -58,6 +59,7 @@ paths:
- name: Custom cURL snippet
language: curl
code: curl -X POST https://api.example.com/v2/alert
install: brew install curl
- language: curl
code: |-
# This custom cURL snippet does not have a custom name so it has the name of "Default #2".
Expand Down

0 comments on commit 08a7646

Please sign in to comment.