Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Resource name is invalid: illegal character #129

Open
sichvoge opened this issue Jan 27, 2015 · 0 comments
Open

Resource name is invalid: illegal character #129

sichvoge opened this issue Jan 27, 2015 · 0 comments

Comments

@sichvoge
Copy link

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.

/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.

Source: http://forums.raml.org/t/resource-name-is-invalid-illegal-character/614/2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant