-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
Typo in License()
parameter spxd_license_id
- should be spdx_license_id
#176
Comments
Could you elaborate, @schlenk ? What seams to be the issue? What is an acceptable solution? how would you suggest to solve the situation? In addition, you could open a pull request to show a possible mitigation.
|
The referenced standard is called "SPDX", so the license_id referenced in the id property and set by the constructor is a "spdx_license_id". But the constructor named parameter is called "spxd_license_id". Calling the parameter "spxd_license_id" is confusing due to the typo (xd instead of dx) in the identifier. If the API is broken with 2.0.0 anyway, i would simply rename the parameter to the better fitting one. |
License()
parameter spxd_license_id
- should be spdx_license_id
@madpah as we are planning to have most parameters forced to be keys, this typo should be addressed.
via #160 therefore i marked the relevant PRs to close this very PR, after the fact. |
class License(builtins.object)
| License(spxd_license_id: Optional[str] = None
The parameter is prefixed by 'spxd' but the license page referenced is called "SPDX" (https://spdx.dev/)
Might be API breaking to change it.
Found in cyclonedx-python-lib 1.3.0
The text was updated successfully, but these errors were encountered: