JSON Schemas
This section is a collection of JSON schemas for the FederatedCode Data.
Package
Package
https://raw.githubusercontent.com/nexB/federatedcode/main/schemas/package.schema.json |
||||
A software package identified by its package url ( PURL ) ignoring versions |
||||
type |
object |
|||
properties |
||||
|
#/$defs/RemoteActor |
|||
|
Notes |
|||
type |
array |
|||
items |
#/$defs/Note |
|||
|
Summary |
|||
profile summary |
||||
type |
string |
|||
maxLength |
100 |
|||
|
Public Key |
|||
type |
string |
|||
|
Local |
|||
type |
boolean |
|||
default |
True |
|||
|
Id |
|||
The object’s unique global identifier |
||||
anyOf |
type |
string |
||
format |
uuid |
|||
type |
null |
|||
|
Purl |
|||
PURL (no version) ex: @pkg:maven/org.apache.logging |
||||
type |
string |
|||
maxLength |
300 |
|||
$defs |
||||
|
Note |
|||
A Note is a message send by a Person or Package. The content is either a plain text message or structured YAML. If the author is a Package actor then the content is always YAML If the author is a Person actor then the content is always plain text https://www.w3.org/TR/activitystreams-vocabulary/#dfn-note |
||||
type |
object |
|||
properties |
||||
|
Reputation |
|||
type |
array |
|||
items |
#/$defs/Reputation |
|||
|
#/$defs/Note |
|||
|
Id |
|||
The object’s unique global identifier |
||||
anyOf |
type |
string |
||
format |
uuid |
|||
type |
null |
|||
|
Acct |
|||
type |
string |
|||
maxLength |
200 |
|||
|
Content |
|||
type |
string |
|||
|
mediaType |
|||
type |
string |
|||
maxLength |
20 |
|||
default |
text/plain |
|||
|
Created At |
|||
A field to track when notes are created |
||||
type |
string |
|||
format |
date-time |
|||
|
Updated At |
|||
A field to track when notes are updated |
||||
type |
string |
|||
format |
date-time |
|||
|
RemoteActor |
|||
type |
object |
|||
properties |
||||
|
Url |
|||
default |
null |
|||
anyOf |
type |
string |
||
type |
null |
|||
|
Username |
|||
type |
string |
|||
maxLength |
100 |
|||
|
Created At |
|||
A field to track when remote actor are created |
||||
type |
string |
|||
format |
date-time |
|||
|
Updated At |
|||
A field to track when remote actor are updated |
||||
type |
string |
|||
format |
date-time |
|||
|
Reputation |
|||
https://www.w3.org/TR/activitystreams-vocabulary/#dfn-like https://www.w3.org/ns/activitystreams#Dislike |
||||
type |
object |
|||
properties |
||||
|
Object Id |
|||
default |
null |
|||
anyOf |
type |
string |
||
format |
uuid |
|||
type |
null |
|||
|
Voter |
|||
type |
string |
|||
maxLength |
100 |
|||
|
Positive |
|||
type |
boolean |
|||
default |
True |
|||
Vulnerability
Vulnerability
https://raw.githubusercontent.com/nexB/federatedcode/main/schemas/vulnerability.schema.json |
||||
type |
object |
|||
properties |
||||
|
#/$defs/Repository |
|||
|
Id |
|||
Unique identifier for a vulnerability in the external representation. It is prefixed with VCID- |
||||
default |
null |
|||
anyOf |
type |
string |
||
maxLength |
20 |
|||
type |
null |
|||
|
Remote Url |
|||
default |
null |
|||
anyOf |
type |
string |
||
maxLength |
300 |
|||
type |
null |
|||
$defs |
||||
|
Repository |
|||
A git repository used as a backing storage for Package and vulnerability data |
||||
type |
object |
|||
properties |
||||
|
Id |
|||
The object’s unique global identifier |
||||
anyOf |
type |
string |
||
format |
uuid |
|||
type |
null |
|||
|
Url |
|||
Git Repository url ex: https://github.com/nexB/vulnerablecode-data |
||||
type |
string |
|||
|
Path |
|||
path of the repository |
||||
type |
string |
|||
maxLength |
200 |
|||
|
Remote Url |
|||
the url of the repository if this repository is remote |
||||
default |
null |
|||
anyOf |
type |
string |
||
maxLength |
300 |
|||
type |
null |
|||
|
Last Imported Commit |
|||
default |
null |
|||
anyOf |
type |
string |
||
maxLength |
64 |
|||
type |
null |
|||
|
Created At |
|||
A field to track when repository are created |
||||
type |
string |
|||
format |
date-time |
|||
|
Updated At |
|||
A field to track when repository are updated |
||||
type |
string |
|||
format |
date-time |
|||