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
See the [`PUT /_db/{database-name}/_api/collection/{collection-name}/properties`](../../../develop/http-api/collections.md#change-the-properties-of-a-collection)
See [`collection.properties()`](../../../develop/javascript-api/@arangodb/collection-object.md#collectionpropertiesproperties)
107
102
in the _JavaScript API_ for details.
@@ -112,8 +107,8 @@ in the _JavaScript API_ for details.
112
107
curl -XPUT -d '{"schema":{"rule":{"type":"object","properties":{"nums":{"type":"array","items":{"type":"number","maximum":6}}},"additionalProperties":{"type":"string"},"required":["nums"]},"level":"moderate","message":"The document does not contain an array of numbers in attribute \"nums\", one of the numbers is greater than 6, or another top-level attribute is not a string."}}' http://localhost:8529/_db/mydb/_api/collection/coll/properties
113
108
```
114
109
115
-
See the [`GET /_db/{database-name}/_api/collection/{collection-name}/properties`](../../../develop/http-api/collections.md#get-the-properties-of-a-collection)
116
-
endpoint in the _HTTP API_for details.
110
+
See the [`PUT /_db/{database-name}/_api/collection/{collection-name}/properties`](../../../develop/http-api/collections.md#change-the-properties-of-a-collection)
111
+
endpoint in the _HTTP API_ for details.
117
112
{{< /tab >}}
118
113
119
114
{{< tab "JavaScript" >}}
@@ -216,7 +211,6 @@ in the _arangodb-java-driver_ documentation for details.
216
211
```py
217
212
coll = db.collection("coll")
218
213
props = coll.configure(
219
-
sync=True,
220
214
schema={
221
215
"rule": {
222
216
"type": "object",
@@ -244,7 +238,101 @@ in the _python-arango_ documentation for details.
244
238
245
239
{{< /tabs >}}
246
240
247
-
## JSON Schema Rule
241
+
### Remove schema validation for a collection
242
+
243
+
To remove an existing schema from a collection, set a `schema` value of either
244
+
`null` or `{}` (empty object).
245
+
246
+
{{< tabs "interfaces" >}}
247
+
248
+
{{< tab "Web interface" >}}
249
+
1. If necessary, [switch to the database](../databases.md#set-the-database-context)
250
+
that contains the desired collection.
251
+
2. Click **COLLECTIONS** in the main navigation.
252
+
3. Click the card of the desired collection.
253
+
4. Go to the **Schema** tab.
254
+
5. You can temporarily disable the document validation by setting the validation
255
+
`level` to `"none"`. To fully remove the schema from the collection, replace
See the [`PUT /_db/{database-name}/_api/collection/{collection-name}/properties`](../../../develop/http-api/collections.md#change-the-properties-of-a-collection)
282
+
endpoint in the _HTTP API_ for details.
283
+
{{< /tab >}}
284
+
285
+
{{< tab "JavaScript" >}}
286
+
```js
287
+
let coll =db.collection("coll");
288
+
constprops=awaitcoll.properties({ schema:null });
289
+
```
290
+
291
+
See [`DocumentCollection.properties()`](https://arangodb.github.io/arangojs/latest/interfaces/collections.DocumentCollection.html#properties.properties-2)
See [`ArangoCollection.changeProperties()`](https://www.javadoc.io/doc/com.arangodb/arangodb-java-driver/latest/com/arangodb/ArangoCollection.html#changeProperties%28com.arangodb.model.CollectionPropertiesOptions%29)
318
+
in the _arangodb-java-driver_ documentation for details.
319
+
{{< /tab >}}
320
+
321
+
{{< tab "Python" >}}
322
+
```py
323
+
coll = db.collection("coll")
324
+
props = coll.configure(schema={})
325
+
```
326
+
327
+
See [`Collection.configure()`](https://docs.python-arango.com/en/main/specs.html#arango.collection.Collection.configure)
328
+
in the _python-arango_ documentation for details.
329
+
{{< /tab >}}
330
+
331
+
{{< /tabs >}}
332
+
333
+
## Schema validation properties
334
+
335
+
### JSON Schema Rule
248
336
249
337
The `rule` must be a valid JSON Schema object as outlined in the
See the [`PUT /_db/{database-name}/_api/collection/{collection-name}/properties`](../../../develop/http-api/collections.md#change-the-properties-of-a-collection)
0 commit comments