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

parse with hyphen inside the Bracket format cant be recognized #86

Closed
shiywang opened this issue Jun 28, 2019 · 3 comments
Closed

parse with hyphen inside the Bracket format cant be recognized #86

shiywang opened this issue Jun 28, 2019 · 3 comments
Labels

Comments

@shiywang
Copy link

shiywang commented Jun 28, 2019

rp = parse.parse("RHEL-{rhel-version}-OSE-{ose-version}", pv)
rb = parse.parse("rhaos-{ose-version}-rhel-{rhel-version}", branch)

rp['rhel-version']  == None

but when I change to

rp = parse.parse("RHEL-{rhel}-OSE-{ose}", pv)
rb = parse.parse("rhaos-{ose}-rhel-{rhel}", branch)

it works

@r1chardj0n3s r1chardj0n3s changed the title parse with underscore inside the Bracket format cant be recognized parse with hyphen inside the Bracket format cant be recognized Jul 16, 2019
@r1chardj0n3s
Copy link
Owner

Looks like the allowed chars list for names needs to be expanded, perhaps to allow everything except the colon or closing brace char.

@codeasashu
Copy link

@r1chardj0n3s Any update? This is causing python-openapi/openapi-core#672

wimglenn added a commit that referenced this issue Jun 11, 2024
allow hyphen in field name. closes #86
@codeasashu
Copy link

OMG, thank you for quick solution :)

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

No branches or pull requests

3 participants