-
-
Notifications
You must be signed in to change notification settings - Fork 434
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8c15898
commit 1a819a1
Showing
3 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package openapi3 | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/stretchr/testify/require" | ||
) | ||
|
||
func TestIssue961(t *testing.T) { | ||
loader := NewLoader() | ||
loader.IsExternalRefsAllowed = true | ||
_, err := loader.LoadFromFile("./testdata/issue961/main.yml") | ||
require.NoError(t, err) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
oneOf: | ||
- title: "text" | ||
description: | | ||
type "text": **text** is a simple string. | ||
type: object | ||
required: | ||
- type | ||
properties: | ||
default: | ||
type: string | ||
position: | ||
type: number | ||
format: int32 | ||
minimum: 0 | ||
description: | | ||
Position of the parameter in the output. | ||
name: | ||
type: string | ||
description: "name of the parameter as used in the API" | ||
- title: "table" | ||
description: | | ||
type "table" | ||
type: object | ||
required: | ||
- type | ||
properties: | ||
default: | ||
type: string | ||
position: | ||
type: number | ||
format: int32 | ||
minimum: 0 | ||
description: | | ||
Position of the parameter in the output. | ||
name: | ||
type: string | ||
description: "name of the parameter as used in the API" | ||
fields: | ||
type: array | ||
items: | ||
$ref: '#' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
components: | ||
schemas: | ||
configParam: | ||
$ref: './config_param.yml' |