mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-21 09:03:02 +00:00
feat: pipeline improvements
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
import {MappingDynamicTemplate, MappingProperty} from '@elastic/elasticsearch/lib/api/types';
|
||||
import {MappingDynamicTemplate, MappingProperty} from '@elastic/elasticsearch/lib/api/types.js';
|
||||
|
||||
export interface MapAggTestOptions {
|
||||
testName: string;
|
||||
|
||||
@@ -16,9 +16,9 @@ import {generateTemplate, getProjectReflection, settings} from '../../src';
|
||||
import path from 'path';
|
||||
import {expect} from 'chai';
|
||||
import {ProjectReflection} from 'typedoc';
|
||||
import {MapAggTestOptions, MinimalMappingDescription} from './map-agg-test-options';
|
||||
import type {AggregationSchema, ESNestedAggregation} from '../../schema/aggregations';
|
||||
import type {ElasticsearchTemplateCollection} from '../../schema/mappings';
|
||||
import {MapAggTestOptions, MinimalMappingDescription} from './map-agg-test-options.js';
|
||||
import type {AggregationSchema, ESNestedAggregation} from '../../schema/aggregations.js';
|
||||
import type {ElasticsearchTemplateCollection} from '../../schema/mappings.js';
|
||||
|
||||
export class MapAggTest {
|
||||
mapping_model_path!: string;
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft-07/schema",
|
||||
"$ref": "#/definitions/MappingSchema",
|
||||
"definitions": {
|
||||
"MappingSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"schema": {
|
||||
"$ref": "https://json-schema.org/draft-07/schema"
|
||||
},
|
||||
"config": {
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"required": ["schema", "config"]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"$schema": "../mapping-test.schema.json",
|
||||
"schema": {
|
||||
"definitions": ""
|
||||
},
|
||||
"config": {}
|
||||
}
|
||||
Reference in New Issue
Block a user