-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
…with OpenSearch settings Signed-off-by: Andriy Redko <[email protected]>
- Loading branch information
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
9456bb3cdd0f79f91a5f730a1b1bb041a380c91f |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
fd441d574a71e7d10a4f73de6609f881d8cdfeec |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
02a16efeb840c45af1e2f31753dfe76795278b73 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
9456bb3cdd0f79f91a5f730a1b1bb041a380c91f |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
9456bb3cdd0f79f91a5f730a1b1bb041a380c91f |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1be7098dccc079171464dca7e386bd8df623b031 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
c4ddbc5277670f2e56b1f5e44e83afa748bcb125 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
8e4f1923d73cd55f2b4c0d56ee4ed80419297354 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* The OpenSearch Contributors require contributions made to | ||
* this file be licensed under the Apache-2.0 license or a | ||
* compatible open source license. | ||
*/ | ||
|
||
package org.opensearch.common.xcontent; | ||
|
||
import com.fasterxml.jackson.core.StreamReadConstraints; | ||
|
||
import org.opensearch.common.annotation.InternalApi; | ||
|
||
/** | ||
* Consolidates the XContent constraints (primarily reflecting Jackson's {@link StreamReadConstraints} constraints) | ||
* | ||
* @opensearch.internal | ||
*/ | ||
@InternalApi | ||
public interface XContentContraints { | ||
final int DEFAULT_MAX_STRING_LEN = Integer.parseInt( | ||
System.getProperty("opensearch.xcontent.string.length.max", "50000000" /* ~50 Mb */) | ||
); | ||
|
||
final int DEFAULT_MAX_NAME_LEN = Integer.parseInt( | ||
System.getProperty("opensearch.xcontent.name.length.max", Integer.toString(StreamReadConstraints.DEFAULT_MAX_NAME_LEN) /* 50000 */) | ||
); | ||
|
||
final int DEFAULT_MAX_DEPTH = Integer.parseInt( | ||
System.getProperty("opensearch.xcontent.depth.max", Integer.toString(StreamReadConstraints.DEFAULT_MAX_DEPTH) /* 1000 */) | ||
); | ||
} |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
fd441d574a71e7d10a4f73de6609f881d8cdfeec |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
02a16efeb840c45af1e2f31753dfe76795278b73 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
fd441d574a71e7d10a4f73de6609f881d8cdfeec |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
02a16efeb840c45af1e2f31753dfe76795278b73 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
fd441d574a71e7d10a4f73de6609f881d8cdfeec |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
02a16efeb840c45af1e2f31753dfe76795278b73 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
fd441d574a71e7d10a4f73de6609f881d8cdfeec |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
02a16efeb840c45af1e2f31753dfe76795278b73 |
This file was deleted.