Skip to content

Commit 56b38a2

Browse files
authored
remove remaining hydra: prefix (#1993)
* remove remaining hydra: prefix * more prefixes
1 parent 93b57c3 commit 56b38a2

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

admin/handling-relations.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ For instance, if your API returns:
8484
{
8585
"@context": "/contexts/Book",
8686
"@id": "/books",
87-
"@type": "hydra:Collection",
88-
"hydra:member": [
87+
"@type": "Collection",
88+
"member": [
8989
{
9090
"@id": "/books/07b90597-542e-480b-a6bf-5db223c761aa",
9191
"@type": "https://schema.org/Book",
@@ -98,7 +98,7 @@ For instance, if your API returns:
9898
}
9999
}
100100
],
101-
"hydra:totalItems": 1
101+
"totalItems": 1
102102
}
103103
```
104104

core/angularjs-integration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ var app = angular
3939
populateHref(data);
4040

4141
if ('getList' === operation) {
42-
var collectionResponse = data['hydra:member'];
42+
var collectionResponse = data['member'];
4343
collectionResponse.metadata = {};
4444

4545
// Put metadata in a property of the collection
4646
angular.forEach(data, function(value, key) {
47-
if ('hydra:member' !== key) {
47+
if ('member' !== key) {
4848
collectionResponse.metadata[key] = value;
4949
}
5050
});

core/errors.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ the error will be returned in this format as well:
125125
{
126126
"@context": "/contexts/Error",
127127
"@type": "Error",
128-
"hydra:title": "An error occurred",
129-
"hydra:description": "The product \"1234\" does not exist."
128+
"title": "An error occurred",
129+
"description": "The product \"1234\" does not exist."
130130
}
131131
```
132132

core/filters.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ by the library.
1010
By default, all filters are disabled. They must be enabled explicitly.
1111

1212
When a filter is enabled, it automatically appears in the [OpenAPI](openapi.md) and [GraphQL](graphql.md) documentations.
13-
It is also automatically documented as a `hydra:search` property for JSON-LD responses.
13+
It is also automatically documented as a `search` property for JSON-LD responses.
1414

1515
<p align="center" class="symfonycasts"><a href="https://symfonycasts.com/screencast/api-platform/filters?cid=apip"><img src="../symfony/images/symfonycasts-player.png" alt="Filtering and Searching screencast"><br>Watch the Filtering & Searching screencast</a></p>
1616

@@ -27,7 +27,7 @@ use ApiPlatform\Metadata\QueryParameter;
2727
// This parameter "page" works only on /books
2828
#[GetCollection(uriTemplate: '/books', parameters: ['page' => new QueryParameter])]
2929
// This parameter is available on every operations, key is mandatory
30-
#[QueryParameter(key: 'q', property: 'hydra:freetextQuery')]
30+
#[QueryParameter(key: 'q', property: 'freetextQuery')]
3131
class Book {}
3232
```
3333

@@ -2019,7 +2019,7 @@ use ApiPlatform\Metadata\QueryParameter;
20192019
// This parameter "page" works only on /books
20202020
#[GetCollection(uriTemplate: '/books', parameters: ['page' => new QueryParameter])]
20212021
// This parameter is available on every operations, key is mandatory
2022-
#[QueryParameter(key: 'q', property: 'hydra:freetextQuery')]
2022+
#[QueryParameter(key: 'q', property: 'freetextQuery')]
20232023
class Book {}
20242024
```
20252025

core/validation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -601,8 +601,8 @@ If the submitted data has denormalization errors, the HTTP status code will be s
601601
{
602602
"@context": "/api/contexts/ConstraintViolationList",
603603
"@type": "ConstraintViolationList",
604-
"hydra:title": "An error occurred",
605-
"hydra:description": "boolean: This value should be of type bool.\nproperty1: This value should be of type string.",
604+
"title": "An error occurred",
605+
"description": "boolean: This value should be of type bool.\nproperty1: This value should be of type string.",
606606
"violations": [
607607
{
608608
"propertyPath": "boolean",

0 commit comments

Comments
 (0)