From 6a344530da78206f1dbd771ba93c210e24a23a78 Mon Sep 17 00:00:00 2001 From: jiacheng-L <71623842+jiacheng-L@users.noreply.github.com> Date: Tue, 6 Apr 2021 09:13:08 -0700 Subject: [PATCH] Fix Lint error (#13765) * Add missing default error response * Update the integer format to fix Lint error * Add securityDefinitions --- .../preview/2021-04-01-preview/common.json | 11 +++++++++++ .../preview/2021-04-01-preview/secrets.json | 8 ++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-04-01-preview/common.json b/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-04-01-preview/common.json index 49b1026fce06..62e88433aed2 100644 --- a/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-04-01-preview/common.json +++ b/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-04-01-preview/common.json @@ -76,5 +76,16 @@ "modelAsString": true } } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } } } diff --git a/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-04-01-preview/secrets.json b/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-04-01-preview/secrets.json index 131849fb280b..417dbbda91aa 100644 --- a/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-04-01-preview/secrets.json +++ b/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-04-01-preview/secrets.json @@ -306,24 +306,24 @@ "nbf": { "x-ms-client-name": "NotBefore", "type": "integer", - "format": "unixtime", + "format": "int64", "description": "Not before date in seconds since 1970-01-01T00:00:00Z." }, "exp": { "x-ms-client-name": "Expires", "type": "integer", - "format": "unixtime", + "format": "int64", "description": "Expiry date in seconds since 1970-01-01T00:00:00Z." }, "created": { "type": "integer", - "format": "unixtime", + "format": "int64", "readOnly": true, "description": "Creation time in seconds since 1970-01-01T00:00:00Z." }, "updated": { "type": "integer", - "format": "unixtime", + "format": "int64", "readOnly": true, "description": "Last updated time in seconds since 1970-01-01T00:00:00Z." }