You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.
The API Designer (version something on 2015-01-01) reports
Resource name is invalid: illegal character
when there is a hyphen in a uriParameter, e.g.
/bug{a-b}:
uriParameters:
a-b:
enum: [ a-b ]
Quick fix: use underscores instead of hyphens.
Issues:
Hyphen is a legal YAML word character.
Hyphens are allowed in resource names.
Hyphen causes no problems in a uriParameter name.
The hyphen is in the template expression, not in the resource name.
The problem is that RFC 6570 does not allow hyphens in variable names.
Suggestions:
Change the error message to something like Invalid uriParameter name: illegal character '-'
Check the validity of uriParameter and baseUriParameter names.
As by @dmartinezg suggested on mulesoft/api-designer#275:
The API Designer (version something on 2015-01-01) reports
Resource name is invalid: illegal character
when there is a hyphen in a uriParameter, e.g.
Issues:
Hyphen is a legal YAML word character.
Hyphens are allowed in resource names.
Hyphen causes no problems in a uriParameter name.
The hyphen is in the template expression, not in the resource name.
The problem is that RFC 6570 does not allow hyphens in variable names.
Suggestions:
Change the error message to something like
Invalid uriParameter name: illegal character '-'
Check the validity of uriParameter and baseUriParameter names.
Source: http://forums.raml.org/t/resource-name-is-invalid-illegal-character/614/2
The text was updated successfully, but these errors were encountered: