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

Tests for "Determine Default Types" section #125

Open
2 tasks
jstoiko opened this issue Jun 5, 2019 · 0 comments
Open
2 tasks

Tests for "Determine Default Types" section #125

jstoiko opened this issue Jun 5, 2019 · 0 comments

Comments

@jstoiko
Copy link
Contributor

jstoiko commented Jun 5, 2019

This part of the tests needs to be reworked a bit:

  • some tests are in /raml-1.0/spec-examples/APIs/, they should all be inside /Types/determine-default-types/
  • we need to add a few more invalid tests, see below

Common misconceptions (see the Determine Default Types section of the RAML 1.0 Spec):

  • items determines default type to type: array, this is wrong.
(...)
types:
  Foo:
    items: string # invalid, missing `type: array`
  • fileTypes determines default type to type: file, this is also wrong
  • there might be others based on type-specific facets, let's go over the other types and add more test cases if necessary
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

2 participants