mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 18:48:08 +00:00 
			
		
		
		
	openapi: Better comments for OperationPrefix/Verb/Suffix (#20162)
This commit is contained in:
		 Anton Averchenkov
					Anton Averchenkov
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							f9771750fb
						
					
				
				
					commit
					c6fc0033ee
				
			| @@ -228,21 +228,25 @@ type DisplayAttributes struct { | ||||
| 	Action string `json:"action,omitempty"` | ||||
|  | ||||
| 	// OperationPrefix is a hyphenated lower-case string used to construct | ||||
| 	// OpenAPI OperationID. It is typically the name of the plugin. | ||||
| 	// OpenAPI OperationID (prefix + verb + suffix). OperationPrefix is | ||||
| 	// typically a human-readable name of the plugin or a prefix shared by | ||||
| 	// multiple related endpoints. | ||||
| 	OperationPrefix string `json:"operationPrefix,omitempty"` | ||||
|  | ||||
| 	// OperationPrefix is a hyphenated lower-case string used to construct | ||||
| 	// OpenAPI OperationID. It is typically an action to be performed | ||||
| 	// (e.g. "generate", "sign", "login", etc.). If not specified, the verb | ||||
| 	// defaults to `logical.Operation.String()` (e.g. "read", "delete", etc.). | ||||
| 	// OperationVerb is a hyphenated lower-case string used to construct | ||||
| 	// OpenAPI OperationID (prefix + verb + suffix). OperationVerb is typically | ||||
| 	// an action to be performed (e.g. "generate", "sign", "login", etc.). If | ||||
| 	// not specified, the verb defaults to `logical.Operation.String()` | ||||
| 	// (e.g. "read", "list", "delete", "write" for Create/Update) | ||||
| 	OperationVerb string `json:"operationVerb,omitempty"` | ||||
|  | ||||
| 	// OperationPrefix is a hyphenated lower-case string used to construct | ||||
| 	// OpenAPI OperationID. It is typically the name of the resource on which | ||||
| 	// the action is performed (e.g. "role", "credentials", etc.). A pipe (|) | ||||
| 	// separator can be used to list different suffixes for various permutations | ||||
| 	// of the `Path.Pattern` regular expression. If not specified, the suffix | ||||
| 	// defaults to the `Path.Pattern` split by dashes. | ||||
| 	// OperationSuffix is a hyphenated lower-case string used to construct | ||||
| 	// OpenAPI OperationID (prefix + verb + suffix). It is typically the name | ||||
| 	// of the resource on which the action is performed (e.g. "role", | ||||
| 	// "credentials", etc.). A pipe (|) separator can be used to list different | ||||
| 	// suffixes for various permutations of the `Path.Pattern` regular | ||||
| 	// expression. If not specified, the suffix defaults to the `Path.Pattern` | ||||
| 	// split by dashes. | ||||
| 	OperationSuffix string `json:"operationSuffix,omitempty"` | ||||
|  | ||||
| 	// EditType is the optional type of form field needed for a property | ||||
|   | ||||
		Reference in New Issue
	
	Block a user