Skip to content

Commit 0e1f0cc

Browse files
authored
fix: incorrect documentation as of how to use the properties for XML (#1676)
1 parent 4d4a7f0 commit 0e1f0cc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

core/openapi.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,10 @@ resources:
177177
178178
```xml
179179
<?xml version="1.0" encoding="UTF-8" ?>
180-
<properties xmlns="https://api-platform.com/schema/metadata/properties"
180+
<properties xmlns="https://api-platform.com/schema/metadata/properties-3.0"
181181
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
182-
xsi:schemaLocation="https://api-platform.com/schema/metadata/properties
183-
https://api-platform.com/schema/metadata/properties.xsd">
182+
xsi:schemaLocation="https://api-platform.com/schema/metadata/properties-3.0
183+
https://api-platform.com/schema/metadata/properties-3.0.xsd">
184184
<property resource="App\Entity\Product" name="name">
185185
<openapiContext>
186186
<values>
@@ -201,7 +201,7 @@ resources:
201201
<value name="type">string</value>
202202
<value name="format">date-time</value>
203203
</values>
204-
</attribute>
204+
</openapiContext>
205205
</property>
206206
</properties>
207207
```

0 commit comments

Comments
 (0)