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 names of additional attribute keys #196

Conversation

phackstock
Copy link
Contributor

Closes #190.

As discussed in #188, this PR adds a validator for the keys of Code.attribute and raises an error if any of them are not valid python identifiers or shadow keywords.
Examples that are no longer allowed would be "contains-hyphen" or "True".

@phackstock phackstock added the enhancement New feature or request label Nov 15, 2022
Copy link
Member

@danielhuppmann danielhuppmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@phackstock phackstock merged commit 98b1fb0 into IAMconsortium:main Nov 22, 2022
@phackstock phackstock deleted the feature/additional-attribute-name-check branch November 22, 2022 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Restrict attribute values
2 participants