You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: core/deprecations.md
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -98,6 +98,19 @@ class Review
98
98
}
99
99
```
100
100
101
+
```yaml
102
+
# api/config/api_platform/resources.yaml
103
+
resources:
104
+
# ...
105
+
App\Entity\Review:
106
+
properties:
107
+
# ...
108
+
letter:
109
+
attributes:
110
+
deprecation_reason: 'Use the rating property instead'
111
+
112
+
```
113
+
101
114
* With JSON-lD / Hydra, [an `owl:deprecated` annotation property](https://www.w3.org/TR/owl2-syntax/#Annotation_Properties) will be added to the appropriate data structure
102
115
* With Swagger / OpenAPI, [a `deprecated` property](https://swagger.io/docs/specification/2-0/paths-and-operations/) will be added
103
116
* With GraphQL, the [`isDeprecated` and `deprecationReason` properties](https://facebook.github.io/graphql/June2018/#sec-Deprecation) will be added to the schema
0 commit comments