Skip to content
This repository was archived by the owner on Feb 12, 2022. It is now read-only.

Commit a854852

Browse files
committed
Added supplementary test
1 parent 9eb6379 commit a854852

File tree

2 files changed

+334
-1
lines changed
  • raml-parser-2/src/test/resources/org/raml/v2/parser/examples/external-schema-detection

2 files changed

+334
-1
lines changed

raml-parser-2/src/test/resources/org/raml/v2/parser/examples/external-schema-detection/input.raml

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,15 @@ title: Sample - Api
33
version: 1.0.0-SNAPSHOT
44
baseUri: http://api.samplehost.com
55

6-
/test:
6+
types:
7+
simpleObject:
8+
properties:
9+
first: string
10+
anotherObject:
11+
properties:
12+
second: string
13+
14+
/scalar:
715
get:
816
queryParameters:
917
timeout:
@@ -13,3 +21,40 @@ baseUri: http://api.samplehost.com
1321
theXml: <2019-09-09>
1422
theJson: |
1523
{2019-09-09}
24+
/object:
25+
get:
26+
body:
27+
application/json:
28+
type: simpleObject
29+
examples:
30+
moreJson: |
31+
{"first": true}
32+
33+
/unionObject:
34+
get:
35+
body:
36+
application/json:
37+
type: simpleObject|anotherObject
38+
examples:
39+
moreJson: |
40+
{"first": true}
41+
42+
/unionNeverObject:
43+
get:
44+
body:
45+
application/json:
46+
type: boolean|integer
47+
examples:
48+
moreJson: |
49+
{hello}
50+
51+
/unionSometimesObject:
52+
get:
53+
body:
54+
application/json:
55+
type: string|simpleObject
56+
examples:
57+
moreJson: |
58+
<hello>
59+
60+

0 commit comments

Comments
 (0)