github/gitea: Fix type of as:totalItems being xsd:integer instead of xsd:nonNegativeInteger
rdflib implicitly sets xsd:integer as the type of Literal(42); while the ActivityStream specification requires a xsd:nonNegativeInteger here. This was highlighted by a bugfix in rdflib 7.1.0, as previous versions omitted serializing the "default" datatype corresponding to the Python type of the literal value when writing in JSON-LD.
Showing
- requirements.txt 1 addition, 1 deletionrequirements.txt
- swh/indexer/codemeta.py 4 additions, 2 deletionsswh/indexer/codemeta.py
- swh/indexer/metadata_dictionary/gitea.py 34 additions, 7 deletionsswh/indexer/metadata_dictionary/gitea.py
- swh/indexer/metadata_dictionary/github.py 34 additions, 7 deletionsswh/indexer/metadata_dictionary/github.py
- swh/indexer/namespaces.py 1 addition, 0 deletionsswh/indexer/namespaces.py
- swh/indexer/tests/metadata_dictionary/test_gitea.py 10 additions, 3 deletionsswh/indexer/tests/metadata_dictionary/test_gitea.py
- swh/indexer/tests/metadata_dictionary/test_github.py 13 additions, 3 deletionsswh/indexer/tests/metadata_dictionary/test_github.py
Loading
Please register or sign in to comment