Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #106 from raml-org/addInvalidArrayItemsTypeTest
Browse files Browse the repository at this point in the history
added array items check test for invalid values
  • Loading branch information
sichvoge authored Feb 12, 2017
2 parents 728df38 + 27963f0 commit 3e688ec
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/raml-1.0/Types/ArrayTypes/itemsInvalidTypeTest/input.raml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#%RAML 1.0

# Objective: This test covers the case that 'items' is something else than either
# a reference to an existing type or an inline type declaration.
# Expected result: Test fails with an error that contains a message that the
# allowed value of 'items' is either a reference to an existing
# type or an inline type declaration. Line numbers should
# indicate where it happens.

# tags: type, array, facet

title: TestRAML

types:
Foo:
Bar:
FooBarArray:
type: array
items: [ Foo, Bar ]

0 comments on commit 3e688ec

Please sign in to comment.