File tree Expand file tree Collapse file tree 2 files changed +41
-2
lines changed Expand file tree Collapse file tree 2 files changed +41
-2
lines changed Original file line number Diff line number Diff line change 1+ #  yaml-language-server: $schema=../schema/workflow.yaml
2+ document :
3+   dsl : 1.0.0-alpha2 
4+   namespace : examples 
5+   name : http-query-headers-expressions 
6+   version : 1.0.0-alpha2 
7+ input :
8+   schema :
9+     format : json 
10+     document :
11+       type : object 
12+       required :
13+         - searchQuery 
14+       properties :
15+         searchQuery :
16+           type : string 
17+ do :
18+   - setQueryAndHeaders :
19+       set :
20+         query :
21+           search : ${.searchQuery} 
22+         headers :
23+           Accept : application/json 
24+   - searchStarWarsCharacters :
25+       call : http 
26+       with :
27+         method : get 
28+         endpoint : https://swapi.dev/api/people/ 
29+         headers : ${.headers} 
30+         query : ${.query} 
31+       
Original file line number Diff line number Diff line change @@ -357,14 +357,22 @@ $defs:
357357                description : The HTTP endpoint to send the request to. 
358358                $ref : ' #/$defs/endpoint' 
359359              headers :
360-                 type : object 
360+                 oneOf :
361+                   - type : object 
362+                     additionalProperties :
363+                       type : string 
364+                   - $ref : ' #/$defs/runtimeExpression' 
361365                title : HTTPHeaders 
362366                description : A name/value mapping of the headers, if any, of the HTTP request to perform. 
363367              body :
364368                title : HTTPBody 
365369                description : The body, if any, of the HTTP request to perform. 
366370              query :
367-                 type : object 
371+                 oneOf :
372+                   - type : object 
373+                     additionalProperties :
374+                       type : string 
375+                   - $ref : ' #/$defs/runtimeExpression' 
368376                title : HTTPQuery 
369377                description : A name/value mapping of the query parameters, if any, of the HTTP request to perform. 
370378                additionalProperties : true 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments