This repository has been archived by the owner on Jan 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added necessary tck files for new tests
- Loading branch information
Showing
2 changed files
with
128 additions
and
0 deletions.
There are no files selected for viewing
97 changes: 97 additions & 0 deletions
97
tests/raml-1.0/Types/ArrayTypes/itemsInvalidTypeTest/input-tck.json
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,97 @@ | ||
{ | ||
"ramlVersion": "RAML10", | ||
"type": "Api", | ||
"specification": { | ||
"types": [ | ||
{ | ||
"Foo": { | ||
"name": "Foo", | ||
"displayName": "Foo", | ||
"type": [ | ||
"string" | ||
], | ||
"required": true, | ||
"__METADATA__": { | ||
"primitiveValuesMeta": { | ||
"displayName": { | ||
"calculated": true | ||
}, | ||
"type": { | ||
"insertedAsDefault": true | ||
}, | ||
"required": { | ||
"insertedAsDefault": true | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"Bar": { | ||
"name": "Bar", | ||
"displayName": "Bar", | ||
"type": [ | ||
"string" | ||
], | ||
"required": true, | ||
"__METADATA__": { | ||
"primitiveValuesMeta": { | ||
"displayName": { | ||
"calculated": true | ||
}, | ||
"type": { | ||
"insertedAsDefault": true | ||
}, | ||
"required": { | ||
"insertedAsDefault": true | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"FooBarArray": { | ||
"name": "FooBarArray", | ||
"displayName": "FooBarArray", | ||
"type": [ | ||
"array" | ||
], | ||
"required": true, | ||
"items": { | ||
"name": "items", | ||
"displayName": "items", | ||
"type": [ | ||
"string" | ||
], | ||
"required": true, | ||
"__METADATA__": { | ||
"primitiveValuesMeta": { | ||
"displayName": { | ||
"calculated": true | ||
}, | ||
"type": { | ||
"insertedAsDefault": true | ||
}, | ||
"required": { | ||
"insertedAsDefault": true | ||
} | ||
} | ||
} | ||
}, | ||
"__METADATA__": { | ||
"primitiveValuesMeta": { | ||
"displayName": { | ||
"calculated": true | ||
}, | ||
"required": { | ||
"insertedAsDefault": true | ||
} | ||
} | ||
} | ||
} | ||
} | ||
], | ||
"title": "TestRAML" | ||
}, | ||
"errors": [] | ||
} |
31 changes: 31 additions & 0 deletions
31
tests/raml-1.0/Types/ObjectTypes/additionPropertiesInvalidTest/input-tck.json
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,31 @@ | ||
{ | ||
"ramlVersion": "RAML10", | ||
"type": "Api", | ||
"specification": { | ||
"types": [ | ||
{ | ||
"Employee": { | ||
"name": "Employee", | ||
"displayName": "Employee", | ||
"type": [ | ||
"object" | ||
], | ||
"required": true, | ||
"additionalProperties": false, | ||
"__METADATA__": { | ||
"primitiveValuesMeta": { | ||
"displayName": { | ||
"calculated": true | ||
}, | ||
"required": { | ||
"insertedAsDefault": true | ||
} | ||
} | ||
} | ||
} | ||
} | ||
], | ||
"title": "TestRAML" | ||
}, | ||
"errors": [] | ||
} |