mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-11-04 04:28:08 +00:00 
			
		
		
		
	OpenAPI - Don't panic if field isn't found (#10929)
This commit is contained in:
		@@ -257,6 +257,10 @@ func documentPath(p *Path, specialPaths *logical.Paths, backendType logical.Back
 | 
				
			|||||||
			location := "path"
 | 
								location := "path"
 | 
				
			||||||
			required := true
 | 
								required := true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
								if field == nil {
 | 
				
			||||||
 | 
									continue
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			if field.Query {
 | 
								if field.Query {
 | 
				
			||||||
				location = "query"
 | 
									location = "query"
 | 
				
			||||||
				required = false
 | 
									required = false
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										4
									
								
								vendor/github.com/hashicorp/vault/sdk/framework/openapi.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								vendor/github.com/hashicorp/vault/sdk/framework/openapi.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -257,6 +257,10 @@ func documentPath(p *Path, specialPaths *logical.Paths, backendType logical.Back
 | 
				
			|||||||
			location := "path"
 | 
								location := "path"
 | 
				
			||||||
			required := true
 | 
								required := true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
								if field == nil {
 | 
				
			||||||
 | 
									continue
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			if field.Query {
 | 
								if field.Query {
 | 
				
			||||||
				location = "query"
 | 
									location = "query"
 | 
				
			||||||
				required = false
 | 
									required = false
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user