raml-org / raml-tck

Test Compatibility Kit for RAML 1.0
http://raml-org.github.io/raml-tck/
8 stars 10 forks source link

How do we test the behaviour for URIs and trailing slashes? #42

Closed sichvoge closed 7 years ago

sichvoge commented 8 years ago

The spec states the following:

When the base URI ends in one or more slashes (/), those trailing slashes are omitted in the absolute paths for the resources using that base URI. For example, in the following snippet, the absolute paths for the resources are http://api.test.com/common/users and http://api.test.com/common/users/groups.

With the following example:

baseUri: http://api.test.com/common/
/users:
  /groups:

All parser needs to omit any trailing slashes.

How are we gonna test those behaviours?

@svacas @KonstantinSviridov any idea?

sichvoge commented 8 years ago

I think the TCK will contain the right paths without any trailing slashes and the parser will tests its output against it, right?