From 543dae7c48fc2e8e899e1423f645cc0928f9daef Mon Sep 17 00:00:00 2001 From: ymc9 <104139426+ymc9@users.noreply.github.com> Date: Mon, 2 Dec 2024 12:48:03 +0800 Subject: [PATCH] update openapi baselines --- .../tests/baseline/rpc-3.0.0.baseline.yaml | 40 +++++++++---------- .../tests/baseline/rpc-3.1.0.baseline.yaml | 40 +++++++++---------- 2 files changed, 40 insertions(+), 40 deletions(-) diff --git a/packages/plugins/openapi/tests/baseline/rpc-3.0.0.baseline.yaml b/packages/plugins/openapi/tests/baseline/rpc-3.0.0.baseline.yaml index 81ff8d587..94b98f80e 100644 --- a/packages/plugins/openapi/tests/baseline/rpc-3.0.0.baseline.yaml +++ b/packages/plugins/openapi/tests/baseline/rpc-3.0.0.baseline.yaml @@ -180,7 +180,7 @@ components: $ref: '#/components/schemas/Post_ItemListRelationFilter' profile: oneOf: - - $ref: '#/components/schemas/ProfileNullableRelationFilter' + - $ref: '#/components/schemas/ProfileNullableScalarRelationFilter' - $ref: '#/components/schemas/ProfileWhereInput' nullable: true UserOrderByWithRelationInput: @@ -241,7 +241,7 @@ components: $ref: '#/components/schemas/Post_ItemListRelationFilter' profile: oneOf: - - $ref: '#/components/schemas/ProfileNullableRelationFilter' + - $ref: '#/components/schemas/ProfileNullableScalarRelationFilter' - $ref: '#/components/schemas/ProfileWhereInput' nullable: true UserScalarWhereWithAggregatesInput: @@ -319,7 +319,7 @@ components: - type: string user: oneOf: - - $ref: '#/components/schemas/UserRelationFilter' + - $ref: '#/components/schemas/UserScalarRelationFilter' - $ref: '#/components/schemas/UserWhereInput' ProfileOrderByWithRelationInput: type: object @@ -364,7 +364,7 @@ components: nullable: true user: oneOf: - - $ref: '#/components/schemas/UserRelationFilter' + - $ref: '#/components/schemas/UserScalarRelationFilter' - $ref: '#/components/schemas/UserWhereInput' ProfileScalarWhereWithAggregatesInput: type: object @@ -455,7 +455,7 @@ components: nullable: true author: oneOf: - - $ref: '#/components/schemas/UserNullableRelationFilter' + - $ref: '#/components/schemas/UserNullableScalarRelationFilter' - $ref: '#/components/schemas/UserWhereInput' nullable: true Post_ItemOrderByWithRelationInput: @@ -538,7 +538,7 @@ components: nullable: true author: oneOf: - - $ref: '#/components/schemas/UserNullableRelationFilter' + - $ref: '#/components/schemas/UserNullableScalarRelationFilter' - $ref: '#/components/schemas/UserWhereInput' nullable: true Post_ItemScalarWhereWithAggregatesInput: @@ -951,7 +951,7 @@ components: $ref: '#/components/schemas/Post_ItemWhereInput' none: $ref: '#/components/schemas/Post_ItemWhereInput' - ProfileNullableRelationFilter: + ProfileNullableScalarRelationFilter: type: object properties: is: @@ -1105,7 +1105,7 @@ components: - type: string - $ref: '#/components/schemas/NestedStringNullableFilter' nullable: true - UserRelationFilter: + UserScalarRelationFilter: type: object properties: is: @@ -1198,7 +1198,7 @@ components: oneOf: - type: integer - $ref: '#/components/schemas/NestedIntFilter' - UserNullableRelationFilter: + UserNullableScalarRelationFilter: type: object properties: is: @@ -2660,14 +2660,14 @@ components: - type: string - $ref: '#/components/schemas/NullableStringFieldUpdateOperationsInput' nullable: true - UserArgs: + UserDefaultArgs: type: object properties: select: $ref: '#/components/schemas/UserSelect' include: $ref: '#/components/schemas/UserInclude' - ProfileArgs: + ProfileDefaultArgs: type: object properties: select: @@ -2684,31 +2684,31 @@ components: profile: oneOf: - type: boolean - - $ref: '#/components/schemas/ProfileArgs' + - $ref: '#/components/schemas/ProfileDefaultArgs' _count: oneOf: - type: boolean - - $ref: '#/components/schemas/UserCountOutputTypeArgs' + - $ref: '#/components/schemas/UserCountOutputTypeDefaultArgs' ProfileInclude: type: object properties: user: oneOf: - type: boolean - - $ref: '#/components/schemas/UserArgs' + - $ref: '#/components/schemas/UserDefaultArgs' Post_ItemInclude: type: object properties: author: oneOf: - type: boolean - - $ref: '#/components/schemas/UserArgs' + - $ref: '#/components/schemas/UserDefaultArgs' UserCountOutputTypeSelect: type: object properties: posts: type: boolean - UserCountOutputTypeArgs: + UserCountOutputTypeDefaultArgs: type: object properties: select: @@ -2733,11 +2733,11 @@ components: profile: oneOf: - type: boolean - - $ref: '#/components/schemas/ProfileArgs' + - $ref: '#/components/schemas/ProfileDefaultArgs' _count: oneOf: - type: boolean - - $ref: '#/components/schemas/UserCountOutputTypeArgs' + - $ref: '#/components/schemas/UserCountOutputTypeDefaultArgs' ProfileSelect: type: object properties: @@ -2748,7 +2748,7 @@ components: user: oneOf: - type: boolean - - $ref: '#/components/schemas/UserArgs' + - $ref: '#/components/schemas/UserDefaultArgs' userId: type: boolean Post_ItemSelect: @@ -2765,7 +2765,7 @@ components: author: oneOf: - type: boolean - - $ref: '#/components/schemas/UserArgs' + - $ref: '#/components/schemas/UserDefaultArgs' authorId: type: boolean published: diff --git a/packages/plugins/openapi/tests/baseline/rpc-3.1.0.baseline.yaml b/packages/plugins/openapi/tests/baseline/rpc-3.1.0.baseline.yaml index 7665b3070..b6f2c5095 100644 --- a/packages/plugins/openapi/tests/baseline/rpc-3.1.0.baseline.yaml +++ b/packages/plugins/openapi/tests/baseline/rpc-3.1.0.baseline.yaml @@ -183,7 +183,7 @@ components: $ref: '#/components/schemas/Post_ItemListRelationFilter' profile: oneOf: - - $ref: '#/components/schemas/ProfileNullableRelationFilter' + - $ref: '#/components/schemas/ProfileNullableScalarRelationFilter' - $ref: '#/components/schemas/ProfileWhereInput' - type: 'null' UserOrderByWithRelationInput: @@ -244,7 +244,7 @@ components: $ref: '#/components/schemas/Post_ItemListRelationFilter' profile: oneOf: - - $ref: '#/components/schemas/ProfileNullableRelationFilter' + - $ref: '#/components/schemas/ProfileNullableScalarRelationFilter' - $ref: '#/components/schemas/ProfileWhereInput' - type: 'null' UserScalarWhereWithAggregatesInput: @@ -322,7 +322,7 @@ components: - type: string user: oneOf: - - $ref: '#/components/schemas/UserRelationFilter' + - $ref: '#/components/schemas/UserScalarRelationFilter' - $ref: '#/components/schemas/UserWhereInput' ProfileOrderByWithRelationInput: type: object @@ -367,7 +367,7 @@ components: - type: 'null' user: oneOf: - - $ref: '#/components/schemas/UserRelationFilter' + - $ref: '#/components/schemas/UserScalarRelationFilter' - $ref: '#/components/schemas/UserWhereInput' ProfileScalarWhereWithAggregatesInput: type: object @@ -458,7 +458,7 @@ components: - type: 'null' author: oneOf: - - $ref: '#/components/schemas/UserNullableRelationFilter' + - $ref: '#/components/schemas/UserNullableScalarRelationFilter' - $ref: '#/components/schemas/UserWhereInput' - type: 'null' Post_ItemOrderByWithRelationInput: @@ -541,7 +541,7 @@ components: - type: 'null' author: oneOf: - - $ref: '#/components/schemas/UserNullableRelationFilter' + - $ref: '#/components/schemas/UserNullableScalarRelationFilter' - $ref: '#/components/schemas/UserWhereInput' - type: 'null' Post_ItemScalarWhereWithAggregatesInput: @@ -959,7 +959,7 @@ components: $ref: '#/components/schemas/Post_ItemWhereInput' none: $ref: '#/components/schemas/Post_ItemWhereInput' - ProfileNullableRelationFilter: + ProfileNullableScalarRelationFilter: type: object properties: is: @@ -1116,7 +1116,7 @@ components: - type: string - $ref: '#/components/schemas/NestedStringNullableFilter' - type: 'null' - UserRelationFilter: + UserScalarRelationFilter: type: object properties: is: @@ -1212,7 +1212,7 @@ components: oneOf: - type: integer - $ref: '#/components/schemas/NestedIntFilter' - UserNullableRelationFilter: + UserNullableScalarRelationFilter: type: object properties: is: @@ -2689,14 +2689,14 @@ components: - type: string - $ref: '#/components/schemas/NullableStringFieldUpdateOperationsInput' - type: 'null' - UserArgs: + UserDefaultArgs: type: object properties: select: $ref: '#/components/schemas/UserSelect' include: $ref: '#/components/schemas/UserInclude' - ProfileArgs: + ProfileDefaultArgs: type: object properties: select: @@ -2713,31 +2713,31 @@ components: profile: oneOf: - type: boolean - - $ref: '#/components/schemas/ProfileArgs' + - $ref: '#/components/schemas/ProfileDefaultArgs' _count: oneOf: - type: boolean - - $ref: '#/components/schemas/UserCountOutputTypeArgs' + - $ref: '#/components/schemas/UserCountOutputTypeDefaultArgs' ProfileInclude: type: object properties: user: oneOf: - type: boolean - - $ref: '#/components/schemas/UserArgs' + - $ref: '#/components/schemas/UserDefaultArgs' Post_ItemInclude: type: object properties: author: oneOf: - type: boolean - - $ref: '#/components/schemas/UserArgs' + - $ref: '#/components/schemas/UserDefaultArgs' UserCountOutputTypeSelect: type: object properties: posts: type: boolean - UserCountOutputTypeArgs: + UserCountOutputTypeDefaultArgs: type: object properties: select: @@ -2762,11 +2762,11 @@ components: profile: oneOf: - type: boolean - - $ref: '#/components/schemas/ProfileArgs' + - $ref: '#/components/schemas/ProfileDefaultArgs' _count: oneOf: - type: boolean - - $ref: '#/components/schemas/UserCountOutputTypeArgs' + - $ref: '#/components/schemas/UserCountOutputTypeDefaultArgs' ProfileSelect: type: object properties: @@ -2777,7 +2777,7 @@ components: user: oneOf: - type: boolean - - $ref: '#/components/schemas/UserArgs' + - $ref: '#/components/schemas/UserDefaultArgs' userId: type: boolean Post_ItemSelect: @@ -2794,7 +2794,7 @@ components: author: oneOf: - type: boolean - - $ref: '#/components/schemas/UserArgs' + - $ref: '#/components/schemas/UserDefaultArgs' authorId: type: boolean published: