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

feat: add schemas for registry_package event, update package event with new information #747

Merged
merged 10 commits into from Dec 14, 2022
374 changes: 374 additions & 0 deletions payload-examples/api.github.com/index.json

Large diffs are not rendered by default.

374 changes: 374 additions & 0 deletions payload-examples/api.github.com/package/published.docker.payload.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

@@ -0,0 +1,46 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "common/package-npm-metadata.schema.json",
"type": "object",
"properties": {
"name": { "type": "string" },
"version": { "type": "string" },
"npm_user": { "type": "string" },
"author": { "type": ["object", "null"] },
"bugs": { "type": ["object", "null"] },
"dependencies": { "type": "object" },
wolfy1339 marked this conversation as resolved.
Show resolved Hide resolved
"dev_dependencies": { "type": "object" },
"peer_dependencies": { "type": "object" },
"optional_dependencies": { "type": "object" },
"description": { "type": "string" },
"dist": { "type": ["object", "null"] },
"git_head": { "type": "string" },
"homepage": { "type": "string" },
"license": { "type": "string" },
"main": { "type": "string" },
"repository": { "type": ["object", "null"] },
"scripts": { "type": "object" },
"id": { "type": "string" },
"node_version": { "type": "string" },
"npm_version": { "type": "string" },
"has_shrinkwrap": { "type": "boolean" },
"maintainers": { "type": "array", "items": { "type": "object" } },
"contributors": { "type": "array", "items": { "type": "object" } },
"engines": { "type": "object" },
"keywords": { "type": "array", "items": { "type": "string" } },
"files": { "type": "array", "items": { "type": "string" } },
"bin": { "type": "object" },
"man": { "type": "object" },
"directories": { "type": ["object", "null"] },
"os": { "type": "array", "items": { "type": "string" } },
"cpu": { "type": "array", "items": { "type": "string" } },
"readme": { "type": "string" },
"installation_command": { "type": "string" },
"release_id": { "type": "integer" },
"commit_oid": { "type": "string" },
"published_via_actions": { "type": "boolean" },
"deleted_by_id": { "type": "integer" }
},
"additionalProperties": false,
"title": "Package NPM Metadata"
}
@@ -0,0 +1,35 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "common/package-nuget-metadata.schema.json",
"type": "object",
"required": [],
"properties": {
"id": {
"oneOf": [
{ "type": "string" },
{ "type": "object" },
{ "type": "integer" }
]
},
"name": { "type": "string" },
"value": {
"oneOf": [
{ "type": "boolean" },
{ "type": "string" },
{ "type": "integer" },
{
"type": "object",
"properties": {
"url": { "type": "string" },
"branch": { "type": "string" },
"commit": { "type": "string" },
"type": { "type": "string" }
},
"additionalProperties": false
}
]
}
},
"additionalProperties": false,
"title": "Package Nuget Metadata"
}