Skip to content

Commit

Permalink
fix: add schemas component section
Browse files Browse the repository at this point in the history
  • Loading branch information
dec.kolakowski committed Jul 2, 2024
1 parent dd2efd4 commit 3e70446
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions test/LEGO.AsyncAPI.Tests/Models/AsyncApiReference_Should.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
""";
}
}
Expand Down

0 comments on commit 3e70446

Please sign in to comment.