Skip to content

Commit 18d5d4d

Browse files
committed
tabbing
1 parent 35badea commit 18d5d4d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -340,20 +340,20 @@ custom:
340340
content:
341341
application/json:
342342
schema: &ErrorItem
343-
type: object
344-
properties:
345-
message:
346-
type: string
347-
code:
348-
type: integer
343+
type: object
344+
properties:
345+
message:
346+
type: string
347+
code:
348+
type: integer
349349
350350
- name: "PutDocumentResponse"
351351
description: "PUT Document response model (external reference example)"
352352
content:
353353
application/json:
354354
schema:
355-
type: array
356-
items: *ErrorItem
355+
type: array
356+
items: *ErrorItem
357357
```
358358

359359
`&ErrorItem` in the above example creates a node anchor (&ErrorItem) to the `ErrorResponse` schema which then can be used in the `PutDocumentResponse` schema via the reference (*ErrorItem). The node anchor needs to be declared first before it can be used elsewhere via the reference, swapping the above example around would result in an error.

0 commit comments

Comments
 (0)