File tree 2 files changed +38
-0
lines changed
packages/apidom-ls/src/config/openapi/discriminator 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change
1
+ import {
2
+ ApidomCompletionItem ,
3
+ CompletionFormat ,
4
+ CompletionType ,
5
+ } from '../../../apidom-language-types' ;
6
+
7
+ const completion : ApidomCompletionItem [ ] = [
8
+ {
9
+ label : 'propertyName' ,
10
+ insertText : 'propertyName' ,
11
+ kind : 14 ,
12
+ format : CompletionFormat . QUOTED ,
13
+ type : CompletionType . PROPERTY ,
14
+ insertTextFormat : 2 ,
15
+ documentation : {
16
+ kind : 'markdown' ,
17
+ value :
18
+ '**REQUIRED**. The name of the property in the payload that will hold the discriminator value.' ,
19
+ } ,
20
+ } ,
21
+ {
22
+ label : 'mapping' ,
23
+ insertText : 'mapping' ,
24
+ kind : 14 ,
25
+ format : CompletionFormat . OBJECT ,
26
+ type : CompletionType . PROPERTY ,
27
+ insertTextFormat : 2 ,
28
+ documentation : {
29
+ kind : 'markdown' ,
30
+ value :
31
+ 'Map[string, string]\n\\\n\\\nAn object to hold mappings between payload values and schema names or references.' ,
32
+ } ,
33
+ } ,
34
+ ] ;
35
+
36
+ export default completion ;
Original file line number Diff line number Diff line change
1
+ import completion from './completion' ;
1
2
import documentation from './documentation' ;
2
3
import { FormatMeta } from '../../../apidom-language-types' ;
3
4
4
5
const meta : FormatMeta = {
6
+ completion,
5
7
documentation,
6
8
} ;
7
9
You can’t perform that action at this time.
0 commit comments