Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support dash in the parameter name of the URL #115

Closed
uynap opened this issue May 28, 2020 · 0 comments · Fixed by anz-bank/sysl#871
Closed

Support dash in the parameter name of the URL #115

uynap opened this issue May 28, 2020 · 0 comments · Fixed by anz-bank/sysl#871
Assignees

Comments

@uynap
Copy link

uynap commented May 28, 2020

For example, I have a downstream endpoint /aaa?cust-nums=1
Normally, we write Sysl as:

    /aaa:
        GET ?cust-nums=string:
            return ok <: Result

But when run the sysl binary, it throw errors below:

mismatched input 'cust-nums=string' expecting Name

At the moment, "-" is not supported in parameter name. Since I can't change the downstream definition, I was wondering whether there's a workaround in Sysl?

@springwiz springwiz self-assigned this May 28, 2020
cuminandpaprika added a commit to anz-bank/sysl that referenced this issue May 28, 2020
Enables the use of special characters such as - . etc in Query Param names

Fixes anz-bank/sysl-go#115

Changes proposed in this pull request:

Add support for special chars in query params
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants