mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-30 18:17:55 +00:00 
			
		
		
		
	update OpenAPI output to use DisplayAttributes struct (#6928)
This commit is contained in:
		| @@ -335,13 +335,16 @@ func TestOpenAPI_Paths(t *testing.T) { | ||||
| 					Description: "the name", | ||||
| 				}, | ||||
| 				"age": { | ||||
| 					Type:             TypeInt, | ||||
| 					Description:      "the age", | ||||
| 					AllowedValues:    []interface{}{1, 2, 3}, | ||||
| 					Required:         true, | ||||
| 					DisplayName:      "Age", | ||||
| 					DisplayValue:     7, | ||||
| 					DisplaySensitive: true, | ||||
| 					Type:          TypeInt, | ||||
| 					Description:   "the age", | ||||
| 					AllowedValues: []interface{}{1, 2, 3}, | ||||
| 					Required:      true, | ||||
| 					DisplayAttrs: &DisplayAttributes{ | ||||
| 						Name:      "Age", | ||||
| 						Sensitive: true, | ||||
| 						Group:     "Some Group", | ||||
| 						Value:     7, | ||||
| 					}, | ||||
| 				}, | ||||
| 				"x-abc-token": { | ||||
| 					Type:          TypeHeader, | ||||
| @@ -378,6 +381,9 @@ func TestOpenAPI_Paths(t *testing.T) { | ||||
| 					Unpublished: true, | ||||
| 				}, | ||||
| 			}, | ||||
| 			DisplayAttrs: &DisplayAttributes{ | ||||
| 				Navigation: true, | ||||
| 			}, | ||||
| 		} | ||||
|  | ||||
| 		sp := &logical.Paths{ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Madalyn
					Madalyn