Do we want / need to have contentType defined in Software and Core?
goneall opened this issue · 7 comments
It looks like we have the property contentType
defined in both the Core and the Software profile.
The definitions look similar.
From doing a bit of research, it looks like both were added with this commit: b1988bf
Was this intentional?
If not, should we fix it in the 3.0.1 release?
One difference is that
- the
contentType
property inSoftware
profile is describing an object of a class (aFile
class) - the
contentType
property inCore
profile is describing another property (astatement
property inAnnotation
class)
In Software, Software/contentType
is being used by Software/File
to provide the type of the content.
In Core, Core/contentType
is being used by Core/ExternalRef
and Core/Annotation
.
The two definitions seem equivalent; and all instances have range Core/MediaType
.
I propose we remove the property in Software, and only keep (and use) the definition in Core.
So we need a PR to:
- update the
Core/Properties/contentType.md
with some of the wording of the better writtenSoftware/Properties/contentType.md
- remove the
Software/Properties/contentType.md
file - update
Software/Classes/File.md
to refer to/Core/contentType
instead ofcontentType
I propose we remove the property in Software, and only keep (and use) the definition in Core.
I agree.
I probably won't have time to create the PR this week - if it is still open when I finish the first pass at the Java tools, I'll write something up.
Agree with that and have a question on how to put this into a changelog?
Since this can be considered as a model change.
Unless we declared that this is unintentional and it was supposed to be only one contentType (in Core), thus this is a "bug fix" and because of that there's "no change" in the model.
I have open the PR #789 for this, based on @zvr detailed proposal.
Also add a CHANGELOG.md file in this repo to keep track things that specifically about the change in the model.
If this is not a good idea to have it here, or the https://github.com/spdx/spdx-3-model/releases/ can already do this job, or we should have only one CHANGELOG in the spdx-spec repo, can remove/relocate.
Note that model/Software/Properties/contentType.md
has to be also removed from "nav:" section of mkdocs.yml
in spdx-spec
repo.