feat: pipeline improvements

This commit is contained in:
2023-11-07 18:51:55 +01:00
parent 51602ffa0f
commit fdec5a5baa
20 changed files with 118 additions and 150 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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"]
}
}
}

View File

@@ -0,0 +1,7 @@
{
"$schema": "../mapping-test.schema.json",
"schema": {
"definitions": ""
},
"config": {}
}