We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7bc0ff commit 8c15898Copy full SHA for 8c15898
openapi3/issue499_test.go
@@ -0,0 +1,14 @@
1
+package openapi3
2
+
3
+import (
4
+ "testing"
5
6
+ "github.com/stretchr/testify/require"
7
+)
8
9
+func TestIssue499(t *testing.T) {
10
+ loader := NewLoader()
11
+ loader.IsExternalRefsAllowed = true
12
+ _, err := loader.LoadFromFile("testdata/issue499/main.yml")
13
+ require.NoError(t, err)
14
+}
openapi3/testdata/issue499/foo.yml
@@ -0,0 +1 @@
+type: string
openapi3/testdata/issue499/main.yml
@@ -0,0 +1,24 @@
+openapi: 3.0.0
+info:
+ title: 'spec'
+ version: 1.2.3
+paths:
+ /foo:
+ get:
+ summary: get foo
+ responses:
+ "200":
+ description: OK
+ content:
+ application/json:
15
+ schema:
16
+ $ref: "#/components/schemas/Foo"
17
18
+components:
19
+ schemas:
20
+ Foo:
21
+ type: object
22
+ properties:
23
+ id:
24
+ $ref: "./foo.yml"
0 commit comments