Skip to content

Commit 8ab3810

Browse files
committed
Add failing test
1 parent 0c41b52 commit 8ab3810

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Product:
2+
title: Product
3+
x-table: products
4+
type: object
5+
6+
required:
7+
- id
8+
- vat_rate
9+
10+
11+
properties:
12+
13+
id:
14+
type: integer
15+
example: 12531
16+
readOnly: true
17+
18+
19+
vat_rate:
20+
type: string
21+
enum:
22+
- standard
23+
- reduced
24+
- custom
25+
- none
26+
default: standard

tests/specs/issue_fix/74_invalid_schema_reference_error/index.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ components:
1717
id:
1818
type: integer
1919
vat_rate:
20-
$ref: '#/components/schemas/Product/properties/vat_rate'
20+
# $ref: '#/components/schemas/Product/properties/vat_rate' # issue is not observed
21+
$ref: './Product.yaml#/properties/vat_rate' # issue is observed
2122
Product:
2223
type: object
2324
properties:

0 commit comments

Comments
 (0)