Migrate new things to DoCustomRequestV5, fix Comments

This commit is contained in:
Samuel Lorch 2025-03-14 13:29:07 +01:00
parent 7bc894763c
commit 057d2e5f59
3 changed files with 8 additions and 8 deletions

View file

@ -9,7 +9,7 @@ type PassboltAPIVersionType string
const (
PassboltAPIVersionTypeV4 PassboltAPIVersionType = "v4"
PassboltAPIVersionTypeV5 = "v5"
PassboltAPIVersionTypeV5 PassboltAPIVersionType = "v5"
)
func (s PassboltAPIVersionType) IsValid() bool {
@ -59,7 +59,7 @@ func getV4DefaultMetadataTypeSettings() MetadataTypeSettings {
// GetMetadataTypeSettings gets the Servers Settings about which Types to use
func (c *Client) GetMetadataTypeSettings(ctx context.Context) (*MetadataTypeSettings, error) {
msg, err := c.DoCustomRequest(ctx, "GET", "/metadata/types/settings.json", "v3", nil, nil)
msg, err := c.DoCustomRequestV5(ctx, "GET", "/metadata/types/settings.json", nil, nil)
if err != nil {
return nil, err
}