Skip to content

Commit ad25a1f

Browse files
committed
Add source.icon (fixes #34)
1 parent 55ca940 commit ad25a1f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/includes/_cds_services.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,8 @@ You can see the <a href="http://editor.swagger.io/?url=https://raw.githubusercon
192192
"detail": "This is an example success card.",
193193
"source": {
194194
"label": "Static CDS Service Example",
195-
"url": "https://example.com"
195+
"url": "https://example.com",
196+
"icon": "https://example.com/img/icon-100px.png"
196197
},
197198
"links": [
198199
{
@@ -247,6 +248,7 @@ Field | Description
247248
----- | -----------
248249
<nobr>`label`</nobr>| *string*. A short, human-readable label to display for the source of the information displayed on this card. If a `url` is also specified, this may be the text for the hyperlink.
249250
`url` | *URL*. An optional absolute URL to load (via `GET`, in a browser context) when a user clicks on this link to learn more about the organization or data set that provided the information on this card. Note that this URL should not be used to supply a context-specific "drill-down" view of the information on this card. For that, use `link.url` instead.
251+
`icon` | *URL*. An optional absolute URL to an icon for the source of this card. The icon returned by this URL should be in PNG format, an image size of 100x100 pixels, and must not include any transparent regions.
250252

251253
Each **Suggestion** is described by the following attributes.
252254

0 commit comments

Comments
 (0)