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

Check for forbidden characters in attributes #401

Open
danielhuppmann opened this issue Sep 25, 2024 · 0 comments
Open

Check for forbidden characters in attributes #401

danielhuppmann opened this issue Sep 25, 2024 · 0 comments
Assignees

Comments

@danielhuppmann
Copy link
Member

Issue IAMconsortium/common-definitions#133 identified a problem where tags in code-attributes (description in that case) were not replaced because they were not misplaced.

We already have a validation of stray tags in code-names, see

def check_stray_tag(cls, v: Dict[str, Code]) -> Dict[str, Code]:

It would be very helpful to extend that test to all attributes that are (lists of) strings and also guard against other problematic characters, like ", :, ;.

FYI @phackstock @orichters

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.

2 participants