Commit 7362d34 1 parent 835ad4e commit 7362d34 Copy full SHA for 7362d34
File tree 3 files changed +22
-11
lines changed
3 files changed +22
-11
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
14
14
### Deprecated
15
15
### Removed
16
16
### Fixed
17
+ - Make optional fields optional in ` MappingGenericProperty ` ([ 708] ( https://github.com/opensearch-project/opensearch-js/pull/708 ) )
17
18
### Security
18
19
19
20
## [ 2.5.0]
Original file line number Diff line number Diff line change @@ -3907,17 +3907,17 @@ export interface MappingFloatRangeProperty extends MappingRangePropertyBase {
3907
3907
}
3908
3908
3909
3909
export interface MappingGenericProperty extends MappingDocValuesPropertyBase {
3910
- analyzer : string ;
3911
- boost : double ;
3912
- fielddata : IndicesStringFielddata ;
3913
- ignore_malformed : boolean ;
3914
- index : boolean ;
3915
- index_options : MappingIndexOptions ;
3916
- norms : boolean ;
3917
- null_value : string ;
3918
- position_increment_gap : integer ;
3919
- search_analyzer : string ;
3920
- term_vector : MappingTermVectorOption ;
3910
+ analyzer ? : string ;
3911
+ boost ? : double ;
3912
+ fielddata ? : IndicesStringFielddata ;
3913
+ ignore_malformed ? : boolean ;
3914
+ index ? : boolean ;
3915
+ index_options ? : MappingIndexOptions ;
3916
+ norms ? : boolean ;
3917
+ null_value ? : string ;
3918
+ position_increment_gap ? : integer ;
3919
+ search_analyzer ? : string ;
3920
+ term_vector ? : MappingTermVectorOption ;
3921
3921
type : string ;
3922
3922
}
3923
3923
Original file line number Diff line number Diff line change
1
+ import { expectAssignable } from 'tsd' ;
2
+ import { MappingProperty } from '../../api/types' ;
3
+
4
+ // https://github.com/opensearch-project/opensearch-js/issues/703
5
+ // only manifested when value is in a variable, so the following would *not* catch it:
6
+ //
7
+ // expectAssignable<MappingProperty>({ type: 'date' });
8
+
9
+ const x = { type : 'date' } ;
10
+ expectAssignable < MappingProperty > ( x ) ;
You can’t perform that action at this time.
0 commit comments