mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 02:28:09 +00:00 
			
		
		
		
	VAULT-24437 Address OpenAPI endpoint ignoring redact_version listener parameter (#26607)
* VAULT-24437 Address OpenAPI endpoint ignoring redact_version listener parameter * VAULT-24437 changelog * VAULT-24437 changelog mistake
This commit is contained in:
		| @@ -384,6 +384,10 @@ func (p *Path) helpCallback(b *Backend) OperationFunc { | ||||
| 				vaultVersion = env.VaultVersion | ||||
| 			} | ||||
| 		} | ||||
| 		redactVersion, _, _, _ := logical.CtxRedactionSettingsValue(ctx) | ||||
| 		if redactVersion { | ||||
| 			vaultVersion = "" | ||||
| 		} | ||||
| 		doc := NewOASDocument(vaultVersion) | ||||
| 		if err := documentPath(p, b, requestResponsePrefix, doc); err != nil { | ||||
| 			b.Logger().Warn("error generating OpenAPI", "error", err) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Violet Hynes
					Violet Hynes