mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 02:28:09 +00:00 
			
		
		
		
	Move version out of SDK. (#14229)
Move version out of SDK. For now it's a copy rather than move: the part not addressed by this change is sdk/helper/useragent.String, which we'll want to remove in favour of PluginString. That will have to wait until we've removed uses of useragent.String from all builtins.
This commit is contained in:
		| @@ -11,7 +11,6 @@ import ( | ||||
| 	log "github.com/hashicorp/go-hclog" | ||||
| 	"github.com/hashicorp/vault/sdk/helper/wrapping" | ||||
| 	"github.com/hashicorp/vault/sdk/logical" | ||||
| 	"github.com/hashicorp/vault/sdk/version" | ||||
| 	"github.com/mitchellh/mapstructure" | ||||
| 	"golang.org/x/text/cases" | ||||
| 	"golang.org/x/text/language" | ||||
| @@ -21,13 +20,13 @@ import ( | ||||
| const OASVersion = "3.0.2" | ||||
|  | ||||
| // NewOASDocument returns an empty OpenAPI document. | ||||
| func NewOASDocument() *OASDocument { | ||||
| func NewOASDocument(version string) *OASDocument { | ||||
| 	return &OASDocument{ | ||||
| 		Version: OASVersion, | ||||
| 		Info: OASInfo{ | ||||
| 			Title:       "HashiCorp Vault API", | ||||
| 			Description: "HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`.", | ||||
| 			Version:     version.GetVersion().Version, | ||||
| 			Version:     version, | ||||
| 			License: OASLicense{ | ||||
| 				Name: "Mozilla Public License 2.0", | ||||
| 				URL:  "https://www.mozilla.org/en-US/MPL/2.0", | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Nick Cabatoff
					Nick Cabatoff