petrochenko-pavel-a / raml-js-parser2-issues

0 stars 0 forks source link

Allow '/' in URI parameters - support level 2 URI templates #68

Closed VasiliyLysokobylko closed 8 years ago

VasiliyLysokobylko commented 8 years ago

The spec says:

The baseUri property's value MUST conform to the URI specification [RFC2396] or a Level 1 Template URI as defined in RFC 6570 [RFC6570].

In order to be able to document more versatile APIs, Level 2 templates should also be allowed, but only if the macro is the last piece in the URL

Example:

#%RAML 0.8
title: My Sample API
/files{+path}:
  uriParameters:
    path:
      description: The full path to the desired file
      type: string
      example: /my/file
VasiliyLysokobylko commented 8 years ago

https://github.com/raml-org/raml-spec/issues/73

petrochenko-pavel-a commented 8 years ago

This is not related to parser

sichvoge commented 8 years ago

Why is this not related to the parser? I remember the old parser has been updated to support that, so its part of it. @petrochenko-pavel-a can you clarify