Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions UPSTREAM.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Release provenance

Version `0.1.2` was prepared from [`mailschema/mailschema@ad1a909`](https://github.com/mailschema/mailschema/commit/ad1a90942416302e4249ec6949003428b5965ef1).
Version `0.1.3` was prepared from [`mailschema/mailschema@0b325fb`](https://github.com/mailschema/mailschema/commit/0b325fb27a7030f433fe62675b871b22b5523f6c).

The included contribution schema has SHA-256 digest `a8a241b4837971a6251bcc135c704283536f4fb825fbbaedaf1598c6e688d564`. The canonical schemas live in the main MailSchema repository; this repository owns the JavaScript and TypeScript package surface and its release history.

19 changes: 19 additions & 0 deletions build.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { execFileSync } from 'node:child_process';
import { copyFile } from 'node:fs/promises';
import { dirname, resolve } from 'node:path';
import { fileURLToPath } from 'node:url';

const root = dirname(fileURLToPath(import.meta.url));

execFileSync(process.execPath, [resolve(root, 'node_modules/typescript/bin/tsc'), '-p', root], {
cwd: root,
stdio: 'inherit',
});

for (const name of [
'contribution.schema.json',
'map-0.1.schema.json',
'content-review-0.1.schema.json',
]) {
await copyFile(resolve(root, 'src', name), resolve(root, 'dist', name));
}
90 changes: 45 additions & 45 deletions dist/content-review-0.1.schema.json
Original file line number Diff line number Diff line change
@@ -1,52 +1,52 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://mailschema.org/schemas/content-review-0.1.schema.json",
"title": "Content Review 0.1 MAP request",
"allOf": [
{ "$ref": "https://mailschema.org/schemas/map-0.1.schema.json#/$defs/request" },
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://mailschema.org/schemas/content-review-0.1.schema.json",
"title": "Content Review 0.1 MAP request",
"allOf": [
{ "$ref": "https://mailschema.org/schemas/map-0.1.schema.json#/$defs/request" },
{
"type": "object",
"properties": {
"type": {
"type": "object",
"properties": {
"id": { "const": "https://mailschema.org/types/content-review" },
"version": { "const": "0.1" },
"recordDigest": {
"const": "sha-256:0e6365df1bf904f2475f972ec66a5561edc0bfaae69fd7a1b41f53b40bf8ac1c"
}
}
}
}
},
{
"oneOf": [
{
"type": "object",
"properties": {
"type": {
"type": "object",
"properties": {
"id": { "const": "https://mailschema.org/types/content-review" },
"version": { "const": "0.1" },
"recordDigest": {
"const": "sha-256:0e6365df1bf904f2475f972ec66a5561edc0bfaae69fd7a1b41f53b40bf8ac1c"
}
}
}
"type": "object",
"properties": {
"operation": { "const": "request-changes" },
"input": {
"type": "object",
"additionalProperties": false,
"properties": {
"feedback": { "type": "string", "minLength": 1, "maxLength": 12000 }
},
"required": ["feedback"]
}
}
},
{
"oneOf": [
{
"type": "object",
"properties": {
"operation": { "const": "request-changes" },
"input": {
"type": "object",
"additionalProperties": false,
"properties": {
"feedback": { "type": "string", "minLength": 1, "maxLength": 12000 }
},
"required": ["feedback"]
}
}
},
{
"type": "object",
"properties": {
"operation": { "const": "approve" },
"input": {
"type": "object",
"additionalProperties": false,
"maxProperties": 0
}
}
}
]
"type": "object",
"properties": {
"operation": { "const": "approve" },
"input": {
"type": "object",
"additionalProperties": false,
"maxProperties": 0
}
}
}
]
]
}
]
}
Loading
Loading