UNPKG

ctan

Version:

CTAN (Comprehensive TeX Archive Network) API client for Node.js

23 lines (22 loc) 679 B
export const SearchHit = { type: 'object', properties: { title: { type: 'string' }, path: { type: 'string' }, text: { type: 'string' }, }, required: ["title", "path", "text"], additionalProperties: true, }; export const SearchResult = { type: 'object', properties: { numberOfHits: { type: 'integer', minimum: 0 }, offset: { type: 'integer', minimum: 0 }, max: { type: 'integer', minimum: 0, maximum: 256 }, phrase: { type: 'string' }, hits: { type: 'array', items: SearchHit }, }, required: ["numberOfHits", "offset", "max", "phrase", "hits"], additionalProperties: true, };