From c0283c5a3fe87e631e4d049cb58237b397986b11 Mon Sep 17 00:00:00 2001 From: ckoegel Date: Wed, 1 Nov 2023 11:20:42 -0400 Subject: [PATCH] update snapshots --- .../__snapshots__/FieldDetails.test.tsx.snap | 78 +++++++++++-------- .../__snapshots__/OneOfSchema.test.tsx.snap | 16 ++-- .../SecurityRequirement.test.tsx.snap | 26 +++---- 3 files changed, 66 insertions(+), 54 deletions(-) diff --git a/src/components/__tests__/__snapshots__/FieldDetails.test.tsx.snap b/src/components/__tests__/__snapshots__/FieldDetails.test.tsx.snap index f98b667a4f..0d96964b56 100644 --- a/src/components/__tests__/__snapshots__/FieldDetails.test.tsx.snap +++ b/src/components/__tests__/__snapshots__/FieldDetails.test.tsx.snap @@ -1,27 +1,31 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`FieldDetailsComponent renders correctly 1`] = ` -
+
test type prefix array (test title) - + @@ -29,13 +33,13 @@ exports[`FieldDetailsComponent renders correctly 1`] = `
Default: [] @@ -43,20 +47,20 @@ exports[`FieldDetailsComponent renders correctly 1`] = `
Example: "example"

test description @@ -69,25 +73,29 @@ exports[`FieldDetailsComponent renders correctly 1`] = ` `; exports[`FieldDetailsComponent renders correctly when default value is object in request body 1`] = ` -

+
object (test title) - + @@ -95,13 +103,13 @@ exports[`FieldDetailsComponent renders correctly when default value is object in
Default: {"properties":{}} @@ -109,20 +117,20 @@ exports[`FieldDetailsComponent renders correctly when default value is object in
Example: "example"

test description @@ -135,35 +143,39 @@ exports[`FieldDetailsComponent renders correctly when default value is object in `; exports[`FieldDetailsComponent renders correctly when field items have string type and pattern 1`] = ` -

+
Array of strings (test title) - + [ ^see regex[0-9]$ @@ -173,20 +185,20 @@ exports[`FieldDetailsComponent renders correctly when field items have string ty
Example: "example"

test description diff --git a/src/components/__tests__/__snapshots__/OneOfSchema.test.tsx.snap b/src/components/__tests__/__snapshots__/OneOfSchema.test.tsx.snap index 22b51859a4..ea90c2d28f 100644 --- a/src/components/__tests__/__snapshots__/OneOfSchema.test.tsx.snap +++ b/src/components/__tests__/__snapshots__/OneOfSchema.test.tsx.snap @@ -5,27 +5,27 @@ exports[`Components SchemaView OneOf deprecated should match snapshot 1`] = ` class="oneOf-schema" > One of

Deprecated @@ -37,10 +37,10 @@ exports[`Components SchemaView OneOf deprecated should match snapshot 1`] = ` >
string @@ -48,7 +48,7 @@ exports[`Components SchemaView OneOf deprecated should match snapshot 1`] = `
diff --git a/src/components/__tests__/__snapshots__/SecurityRequirement.test.tsx.snap b/src/components/__tests__/__snapshots__/SecurityRequirement.test.tsx.snap index 1c3d7efc81..3e094abded 100644 --- a/src/components/__tests__/__snapshots__/SecurityRequirement.test.tsx.snap +++ b/src/components/__tests__/__snapshots__/SecurityRequirement.test.tsx.snap @@ -1,23 +1,23 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`SecurityRequirement should render SecurityDefs 1`] = ` -"

petstore_auth

Get access to data while protecting your account credentials. +"

petstore_auth

Get access to data while protecting your account credentials. OAuth2 is also a safer and more secure way to give you access.

-
Security Scheme Type: OAuth2
Flow type: implicit
Scopes:
  • write:pets -

    modify pets in your account

    -
  • read:pets -

    read your pets

    -

GitLab_PersonalAccessToken

GitLab Personal Access Token description

-
Security Scheme Type: API Key
Header parameter name: PRIVATE-TOKEN

GitLab_OpenIdConnect

GitLab OpenIdConnect description

-
Security Scheme Type: OpenID Connect

basicAuth

Security Scheme Type: HTTP
HTTP Authorization Scheme: basic
" +
Security Scheme Type: OAuth2
Flow type: implicit
Scopes:
  • write:pets -

    modify pets in your account

    +
  • read:pets -

    read your pets

    +

GitLab_PersonalAccessToken

GitLab Personal Access Token description

+
Security Scheme Type: API Key
Header parameter name: PRIVATE-TOKEN

GitLab_OpenIdConnect

GitLab OpenIdConnect description

+
Security Scheme Type: OpenID Connect

basicAuth

Security Scheme Type: HTTP
HTTP Authorization Scheme: basic
" `; -exports[`SecurityRequirement should render authDefinition 1`] = `"
Authorizations:
(API Key: GitLab_PersonalAccessTokenOpenID Connect: GitLab_OpenIdConnectHTTP: basicAuth) OAuth2: petstore_auth
,"`; +exports[`SecurityRequirement should render authDefinition 1`] = `"
Authorizations:
(API Key: GitLab_PersonalAccessTokenOpenID Connect: GitLab_OpenIdConnectHTTP: basicAuth) OAuth2: petstore_auth
,"`; exports[`SecurityRequirement should render authDefinition 2`] = ` -"
Authorizations:
(API Key: GitLab_PersonalAccessTokenOpenID Connect: GitLab_OpenIdConnectHTTP: basicAuth) OAuth2: petstore_auth (write:petsread:pets)
OAuth2: petstore_auth

Get access to data while protecting your account credentials. +"

Authorizations:
(API Key: GitLab_PersonalAccessTokenOpenID Connect: GitLab_OpenIdConnectHTTP: basicAuth) OAuth2: petstore_auth (write:petsread:pets)
OAuth2: petstore_auth

Get access to data while protecting your account credentials. OAuth2 is also a safer and more secure way to give you access.

-
Flow type: implicit
Required scopes: write:pets read:pets
Scopes:
  • write:pets -

    modify pets in your account

    -
  • read:pets -

    read your pets

    -
API Key: GitLab_PersonalAccessToken

GitLab Personal Access Token description

-
Header parameter name: PRIVATE-TOKEN
OpenID Connect: GitLab_OpenIdConnect

GitLab OpenIdConnect description

-
HTTP: basicAuth
HTTP Authorization Scheme: basic
," +
Flow type: implicit
Required scopes: write:pets read:pets
Scopes:
  • write:pets -

    modify pets in your account

    +
  • read:pets -

    read your pets

    +
API Key: GitLab_PersonalAccessToken

GitLab Personal Access Token description

+
Header parameter name: PRIVATE-TOKEN
OpenID Connect: GitLab_OpenIdConnect

GitLab OpenIdConnect description

+
HTTP: basicAuth
HTTP Authorization Scheme: basic
," `;