Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make sure 1+ are always [] #1433

Merged
merged 1 commit into from
Feb 20, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions source/api/image/3.0/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ More complex examples are given in the [Complete Response Example](#complete-res

| Property | Required? | Description |
| ---------- | --------- | ----------- |
| `service` | Optional | The `service` property provides hooks for additional information to be included in the image description, for example a link to an authentication service. The value may be an object or a list of objects. |
| `service` | Optional | The `service` property provides hooks for additional information to be included in the image description, for example a link to an authentication service. The value _MUST_ be a list of objects. |
{: .api-table}

There _MAY_ be one or more services associated with an image. See the [Service Profiles][service-profiles] annex for more information.
Expand All @@ -677,11 +677,14 @@ The following shows a use of `service` to associate the login page of an authent
"type": "ImageService3",
"protocol" : "http://iiif.io/api/image",
// ...
"service": {
"@context" : "http://iiif.io/api/auth/{{ site.auth_api.latest.major }}/context.json",
"id" : "http://www.example.org/auth/login.html",
"profile": "http://iiif.io/api/auth/{{ site.auth_api.latest.major }}/login"
}
"service": [
{
"@context" : "http://iiif.io/api/auth/{{ site.auth_api.latest.major }}/context.json",
"id" : "http://www.example.org/auth/login.html",
"type": "AuthCookieService1",
"profile": "http://iiif.io/api/auth/{{ site.auth_api.latest.major }}/login"
}
]
}
```

Expand Down