From 3e70446b80431d774fc0ae45d76cef1f3fe1e6e4 Mon Sep 17 00:00:00 2001 From: "dec.kolakowski" Date: Tue, 2 Jul 2024 11:32:58 +0100 Subject: [PATCH] fix: add schemas component section --- .../Models/AsyncApiReference_Should.cs | 33 ++++++++++--------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/test/LEGO.AsyncAPI.Tests/Models/AsyncApiReference_Should.cs b/test/LEGO.AsyncAPI.Tests/Models/AsyncApiReference_Should.cs index b4ab7b35..0bac428f 100644 --- a/test/LEGO.AsyncAPI.Tests/Models/AsyncApiReference_Should.cs +++ b/test/LEGO.AsyncAPI.Tests/Models/AsyncApiReference_Should.cs @@ -430,7 +430,7 @@ public string Load(string reference) description: User name. type: string orderHistory: - $ref: '#/components/OrderHistory' + $ref: '#/components/schemas/OrderHistory' required: - orderId example: @@ -440,22 +440,23 @@ public string Load(string reference) userId: Admin userName: Admin components: - OrderHistory: - type: object - properties: - historyId: - description: ID for order history storage - type: string - format: uuid - historyStorageRecord: - $ref: '#/components/HistoryStorageRecord' - HistoryStorageRecord: - type: object - properties: - historyLog: - type: array - items: + schemas: + OrderHistory: + type: object + properties: + historyId: + description: ID for order history storage type: string + format: uuid + historyStorageRecord: + $ref: '#/components/schemas/HistoryStorageRecord' + HistoryStorageRecord: + type: object + properties: + historyLog: + type: array + items: + type: string """; } }