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 #104 from raml-org/sichvoge/additionalPropertiesIn…
Browse files Browse the repository at this point in the history
…validTest

added test for wrong value in additionalProperties
  • Loading branch information
sichvoge authored Feb 12, 2017
2 parents a2382a7 + f16ee2b commit 728df38
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#%RAML 1.0

# Objective: This test covers the case that additionProperties is an object. It
# is very common syntax in OAS and JSON, but the only allowed value
# in RAML is a boolean.
# Expected result: Test fails with an error that contains a message that the
# allowed value of 'additionalProperties' is a boolean. Line
# numbers should indicate where it happens.

# tags: type, object, additional property

title: TestRAML

types:
Employee:
type: object
additionalProperties:
type: string

0 comments on commit 728df38

Please sign in to comment.