ctan
Version:
CTAN (Comprehensive TeX Archive Network) API client for Node.js
35 lines (34 loc) • 1.16 kB
JavaScript
import { Author as AuthorV1_1, Package as PackageV1_1, } from "../v1_1/schemas.js";
export const Author = {
type: 'object',
allOf: [AuthorV1_1, {
type: 'object',
properties: { female: { type: 'boolean' }, died: { type: 'boolean' } },
}],
required: ["female", "died", "key", "givenname", "familyname"],
};
export const Authors = {
type: 'array',
items: Author,
};
export const Package = {
type: 'object',
allOf: [PackageV1_1, {
type: 'object',
properties: {
support: { type: 'string', nullable: true },
announce: { type: 'string', nullable: true },
bugs: { type: 'string', nullable: true },
repository: { type: 'string', nullable: true },
development: { type: 'string', nullable: true },
},
}],
required: ["id", "name", "caption", "authors", "documentation"],
};
export const ApiVersion = {
type: 'object',
properties: { version: { type: 'string', const: '1.2' } },
required: ["version"],
additionalProperties: true,
};
export * from "../v1_1/schemas.js";