All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liferay.search.experiences.internal.validator.dependencies.shared.schema.json Maven / Gradle / Ivy

{
	"$id": "shared.schema.json",
	"$schema": "http://json-schema.org/draft-07/schema#",
	"definitions": {
		"geopoint": {
			"items": {
				"maxItems": 2,
				"minItems": 2,
				"type": [
					"string",
					"number"
				]
			},
			"type": "array"
		},
		"query": {
			"type": "object"
		},
		"script": {
			"anyOf": [
				{
					"additionalProperties": false,
					"type": "string"
				},
				{
					"additionalProperties": false,
					"type": "object"
				},
				{
					"additionalProperties": false,
					"properties": {
						"id": {
							"type": "string"
						},
						"params": {
							"type": "object"
						}
					},
					"required": [
						"id"
					],
					"type": "object"
				},
				{
					"additionalProperties": false,
					"properties": {
						"_options": {
							"type": "object"
						},
						"lang": {
							"enum": [
								"expression",
								"java",
								"mustache",
								"painless"
							],
							"type": "string"
						},
						"params": {
							"type": "object"
						},
						"source": {
							"type": "string"
						}
					},
					"required": [
						"source"
					],
					"type": "object"
				}
			]
		},
		"source": {
			"if": {
				"type": "object"
			},
			"then": {
				"properties": {
					"excludes": {
						"items": {
							"type": "string"
						},
						"type": "array"
					},
					"includes": {
						"items": {
							"type": "string"
						},
						"type": "array"
					}
				}
			},
			"type": [
				"boolean",
				"object"
			]
		}
	},
	"type": "object"
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy