From 0749a2467ddec180b647d902ea50921e15215c6d Mon Sep 17 00:00:00 2001 From: Evgenii Fedoseev Date: Wed, 27 Mar 2024 16:45:24 +0300 Subject: [PATCH] fix: new snapshots --- src/__snapshots__/basic.test.ts.snap | 28 +-- .../combiners/allOf.test.ts.snap | 70 +++--- .../combiners/complex.test.ts.snap | 88 +++---- .../combiners/oneOf.test.ts.snap | 232 ++++++++---------- src/__snapshots__/description.test.ts.snap | 54 ++-- src/__snapshots__/examples/array.test.ts.snap | 45 ++-- src/__snapshots__/examples/base.test.ts.snap | 24 +- src/__snapshots__/length.test.ts.snap | 48 ++-- src/__snapshots__/required.test.ts.snap | 46 ++-- 9 files changed, 279 insertions(+), 356 deletions(-) diff --git a/src/__snapshots__/basic.test.ts.snap b/src/__snapshots__/basic.test.ts.snap index 693fb62..601330a 100644 --- a/src/__snapshots__/basic.test.ts.snap +++ b/src/__snapshots__/basic.test.ts.snap @@ -56,8 +56,6 @@ Base 200 response #||| **Name** -| - **Type** | **Description** || @@ -65,18 +63,18 @@ Base 200 response || type | - string -| - + **Type:** string + + || || foo | - string -| - + **Type:** string + + |||# @@ -110,8 +108,6 @@ Base 200 response #||| **Name** -| - **Type** | **Description** || @@ -119,18 +115,18 @@ Base 200 response || type | - string -| - + **Type:** string + + || || bar | - string -| - + **Type:** string + + |||# diff --git a/src/__snapshots__/combiners/allOf.test.ts.snap b/src/__snapshots__/combiners/allOf.test.ts.snap index 155c952..f18df07 100644 --- a/src/__snapshots__/combiners/allOf.test.ts.snap +++ b/src/__snapshots__/combiners/allOf.test.ts.snap @@ -49,8 +49,6 @@ Generated server url #||| **Name** -| - **Type** | **Description** || @@ -58,27 +56,27 @@ Generated server url || type | - string -| - + **Type:** string + + || || foo | - string -| - + **Type:** string + + || || name | - string -| - + **Type:** string + + |||# @@ -112,8 +110,6 @@ Base 200 response #||| **Name** -| - **Type** | **Description** || @@ -121,26 +117,26 @@ Base 200 response || name | - string -| - Default: \`a\` + **Type:** string + +Default: \`a\` || || type | - string -| - + **Type:** string + + || || baz | - string -| - + **Type:** string + + |||# @@ -202,8 +198,6 @@ Generated server url #||| **Name** -| - **Type** | **Description** || @@ -211,9 +205,9 @@ Generated server url || pet | - [Cat](#cat) -| - Cat class + **Type:** [Cat](#cat) + +Cat class |||# @@ -227,8 +221,6 @@ Cat class #||| **Name** -| - **Type** | **Description** || @@ -236,18 +228,18 @@ Cat class || type | - string -| - + **Type:** string + + || || foo | - string -| - + **Type:** string + + |||# @@ -283,8 +275,6 @@ Base 200 response #||| **Name** -| - **Type** | **Description** || @@ -292,9 +282,9 @@ Base 200 response || pet | - [Cat](#cat) -| - Cat class + **Type:** [Cat](#cat) + +Cat class |||# diff --git a/src/__snapshots__/combiners/complex.test.ts.snap b/src/__snapshots__/combiners/complex.test.ts.snap index 0709941..f89c0cc 100644 --- a/src/__snapshots__/combiners/complex.test.ts.snap +++ b/src/__snapshots__/combiners/complex.test.ts.snap @@ -52,8 +52,6 @@ Generated server url #||| **Name** -| - **Type** | **Description** || @@ -61,34 +59,34 @@ Generated server url || name | - string -| - Default: \`b\` + **Type:** string + +Default: \`b\` || || age | - any -| - + **Type:** any + + || || - oneOf -| - [Dog](#dog) + ...rest | - Dog class + **oneOf** [Dog](#dog) + +Dog class || || - oneOf -| - [Cat](#cat) + ...rest | - Cat class + **oneOf** [Cat](#cat) + +Cat class |||# @@ -101,8 +99,6 @@ Dog class #||| **Name** -| - **Type** | **Description** || @@ -110,18 +106,18 @@ Dog class || type | - string -| - + **Type:** string + + || || bar | - string -| - + **Type:** string + + |||# @@ -135,8 +131,6 @@ Cat class #||| **Name** -| - **Type** | **Description** || @@ -144,18 +138,18 @@ Cat class || type | - string -| - + **Type:** string + + || || foo | - string -| - + **Type:** string + + |||# @@ -193,8 +187,6 @@ Base 200 response #||| **Name** -| - **Type** | **Description** || @@ -202,34 +194,34 @@ Base 200 response || name | - string -| - Default: \`b\` + **Type:** string + +Default: \`b\` || || age | - any -| - + **Type:** any + + || || - oneOf -| - [Dog](#dog) + ...rest | - Dog class + **oneOf** [Dog](#dog) + +Dog class || || - oneOf + ...rest | - [Cat](#cat) -| - Cat class + **oneOf** [Cat](#cat) + +Cat class |||# diff --git a/src/__snapshots__/combiners/oneOf.test.ts.snap b/src/__snapshots__/combiners/oneOf.test.ts.snap index 9fdefa5..292ceca 100644 --- a/src/__snapshots__/combiners/oneOf.test.ts.snap +++ b/src/__snapshots__/combiners/oneOf.test.ts.snap @@ -48,26 +48,24 @@ Generated server url #||| **Name** -| - **Type** | **Description** || || - oneOf -| - [Dog](#dog) + ...rest | - Dog class + **oneOf** [Dog](#dog) + +Dog class || || - oneOf -| - [Cat](#cat) + ...rest | - Cat class + **oneOf** [Cat](#cat) + +Cat class |||# @@ -80,8 +78,6 @@ Dog class #||| **Name** -| - **Type** | **Description** || @@ -89,18 +85,18 @@ Dog class || type | - string -| - + **Type:** string + + || || baz | - string -| - + **Type:** string + + |||# @@ -114,8 +110,6 @@ Cat class #||| **Name** -| - **Type** | **Description** || @@ -123,18 +117,18 @@ Cat class || type | - string -| - + **Type:** string + + || || foo | - string -| - + **Type:** string + + |||# @@ -166,26 +160,24 @@ Cat class #||| **Name** -| - **Type** | **Description** || || - oneOf + ...rest | - [Dog](#dog) -| - Dog class + **oneOf** [Dog](#dog) + +Dog class || || - oneOf -| - [Cat](#cat) + ...rest | - Cat class + **oneOf** [Cat](#cat) + +Cat class |||# @@ -246,8 +238,6 @@ Generated server url #||| **Name** -| - **Type** | **Description** || @@ -255,35 +245,35 @@ Generated server url || name | - string -| - + **Type:** string + + || || age | - number -| - + **Type:** number + + || || - oneOf -| - [Dog](#dog) + ...rest | - Dog class + **oneOf** [Dog](#dog) + +Dog class || || - oneOf -| - [Cat](#cat) + ...rest | - Cat class + **oneOf** [Cat](#cat) + +Cat class |||# @@ -296,8 +286,6 @@ Dog class #||| **Name** -| - **Type** | **Description** || @@ -305,18 +293,18 @@ Dog class || type | - string -| - + **Type:** string + + || || baz | - string -| - + **Type:** string + + |||# @@ -330,8 +318,6 @@ Cat class #||| **Name** -| - **Type** | **Description** || @@ -339,18 +325,18 @@ Cat class || type | - string -| - + **Type:** string + + || || foo | - string -| - + **Type:** string + + |||# @@ -384,8 +370,6 @@ Cat class #||| **Name** -| - **Type** | **Description** || @@ -393,35 +377,35 @@ Cat class || name | - string -| - + **Type:** string + + || || age | - number -| - + **Type:** number + + || || - oneOf + ...rest | - [Dog](#dog) -| - Dog class + **oneOf** [Dog](#dog) + +Dog class || || - oneOf + ...rest | - [Cat](#cat) -| - Cat class + **oneOf** [Cat](#cat) + +Cat class |||# @@ -484,8 +468,6 @@ Generated server url #||| **Name** -| - **Type** | **Description** || @@ -493,27 +475,27 @@ Generated server url || pet | - [Dog](#dog) -or [Cat](#cat) -| - + **Type:** [Dog](#dog) +or [Cat](#cat) + + || || - oneOf -| - [Dog](#dog) + ...rest | - Dog class + **oneOf** [Dog](#dog) + +Dog class || || - oneOf -| - [Cat](#cat) + ...rest | - Cat class + **oneOf** [Cat](#cat) + +Cat class |||# @@ -526,8 +508,6 @@ Dog class #||| **Name** -| - **Type** | **Description** || @@ -535,18 +515,18 @@ Dog class || type | - string -| - + **Type:** string + + || || baz | - string -| - + **Type:** string + + |||# @@ -560,8 +540,6 @@ Cat class #||| **Name** -| - **Type** | **Description** || @@ -569,18 +547,18 @@ Cat class || type | - string -| - + **Type:** string + + || || foo | - string -| - + **Type:** string + + |||# @@ -616,8 +594,6 @@ Cat class #||| **Name** -| - **Type** | **Description** || @@ -625,27 +601,27 @@ Cat class || pet | - [Dog](#dog) -or [Cat](#cat) -| - + **Type:** [Dog](#dog) +or [Cat](#cat) + + || || - oneOf -| - [Dog](#dog) + ...rest | - Dog class + **oneOf** [Dog](#dog) + +Dog class || || - oneOf -| - [Cat](#cat) + ...rest | - Cat class + **oneOf** [Cat](#cat) + +Cat class |||# diff --git a/src/__snapshots__/description.test.ts.snap b/src/__snapshots__/description.test.ts.snap index 96b5ed6..1790d29 100644 --- a/src/__snapshots__/description.test.ts.snap +++ b/src/__snapshots__/description.test.ts.snap @@ -65,8 +65,6 @@ Generated server url #||| **Name** -| - **Type** | **Description** || @@ -74,36 +72,36 @@ Generated server url || pet | - [Cat](#cat) -| - From response + **Type:** [Cat](#cat) + +From response || || petWithoutDescription | - [Cat](#cat) -| - Cat class + **Type:** [Cat](#cat) + +Cat class || || refToSchemaWithDescription | - [Dog](#dog) -| - Dog class + **Type:** [Dog](#dog) + +Dog class || || simpleDescription | - object -| - Simple description + **Type:** object + +Simple description |||# @@ -117,8 +115,6 @@ Cat class #||| **Name** -| - **Type** | **Description** || @@ -126,18 +122,18 @@ Cat class || type | - string -| - + **Type:** string + + || || foo | - string -| - + **Type:** string + + |||# @@ -151,8 +147,6 @@ Dog class #||| **Name** -| - **Type** | **Description** || @@ -160,18 +154,18 @@ Dog class || type | - string -| - + **Type:** string + + || || bar | - string -| - + **Type:** string + + |||# diff --git a/src/__snapshots__/examples/array.test.ts.snap b/src/__snapshots__/examples/array.test.ts.snap index 00263f6..19da5f1 100644 --- a/src/__snapshots__/examples/array.test.ts.snap +++ b/src/__snapshots__/examples/array.test.ts.snap @@ -52,8 +52,6 @@ Generated server url #||| **Name** -| - **Type** | **Description** || @@ -61,9 +59,10 @@ Generated server url || a | - object[] -| - + **Type:** object[] + + + |||# @@ -154,8 +153,6 @@ Generated server url #||| **Name** -| - **Type** | **Description** || @@ -163,9 +160,10 @@ Generated server url || a | - any[] -| - + **Type:** any[] + + + |||# @@ -252,8 +250,6 @@ Generated server url #||| **Name** -| - **Type** | **Description** || @@ -261,10 +257,11 @@ Generated server url || a | - (string -or integer)[] -| - + **Type:** (string +or integer)[] + + + |||# @@ -443,8 +440,6 @@ Generated server url #||| **Name** -| - **Type** | **Description** || @@ -452,9 +447,9 @@ Generated server url || name | - string -| - + **Type:** string + + |||# @@ -550,8 +545,6 @@ Generated server url #||| **Name** -| - **Type** | **Description** || @@ -559,9 +552,9 @@ Generated server url || name | - string -| - + **Type:** string + + |||# diff --git a/src/__snapshots__/examples/base.test.ts.snap b/src/__snapshots__/examples/base.test.ts.snap index e407e5e..7055f34 100644 --- a/src/__snapshots__/examples/base.test.ts.snap +++ b/src/__snapshots__/examples/base.test.ts.snap @@ -125,8 +125,6 @@ Generated server url #||| **Name** -| - **Type** | **Description** || @@ -134,9 +132,9 @@ Generated server url || name | - string -| - + **Type:** string + + |||# @@ -220,18 +218,14 @@ Generated server url #||| **Name** -| - **Type** | **Description** || || - oneOf + ...rest | - [Cat](#cat) -| - + **oneOf** [Cat](#cat) |||# @@ -242,8 +236,6 @@ Generated server url #||| **Name** -| - **Type** | **Description** || @@ -251,9 +243,9 @@ Generated server url || name | - string -| - + **Type:** string + + |||# diff --git a/src/__snapshots__/length.test.ts.snap b/src/__snapshots__/length.test.ts.snap index c1bc0e4..d5ff1ed 100644 --- a/src/__snapshots__/length.test.ts.snap +++ b/src/__snapshots__/length.test.ts.snap @@ -64,8 +64,6 @@ Generated server url #||| **Name** -| - **Type** | **Description** || @@ -73,27 +71,27 @@ Generated server url || pet | - [Cat](#cat) -| - From response + **Type:** [Cat](#cat) + +From response || || petWithoutDescription | - [Cat](#cat) -| - Cat class + **Type:** [Cat](#cat) + +Cat class || || refToSchemaWithDescription | - [Dog](#dog) -| - Dog class + **Type:** [Dog](#dog) + +Dog class |||# @@ -107,8 +105,6 @@ Cat class #||| **Name** -| - **Type** | **Description** || @@ -116,18 +112,18 @@ Cat class || name | - string -| - + **Type:** string + + || || foo | - string -| - Min length: \`3\` + **Type:** string + +Min length: \`3\` |||# @@ -140,8 +136,6 @@ Dog class #||| **Name** -| - **Type** | **Description** || @@ -149,18 +143,18 @@ Dog class || name | - string -| - Pet name + **Type:** string + +Pet name
Max length: \`100\` || || bar | - string -| - Min length: \`1\`
Max length: \`99\` + **Type:** string + +Min length: \`1\`
Max length: \`99\` |||# diff --git a/src/__snapshots__/required.test.ts.snap b/src/__snapshots__/required.test.ts.snap index a064426..130f1e7 100644 --- a/src/__snapshots__/required.test.ts.snap +++ b/src/__snapshots__/required.test.ts.snap @@ -48,8 +48,6 @@ Generated server url #||| **Name** -| - **Type** | **Description** || @@ -57,45 +55,45 @@ Generated server url || a* | - number -| - + **Type:** number + + || || b* | - number -| - + **Type:** number + + || || c | - number -| - + **Type:** number + + || || d* | - number -| - + **Type:** number + + || || e | - number -| - + **Type:** number + + |||# @@ -129,8 +127,6 @@ Cat class #||| **Name** -| - **Type** | **Description** || @@ -138,18 +134,18 @@ Cat class || type | - string -| - + **Type:** string + + || || foo | - string -| - + **Type:** string + + |||#