All files / src/presentation/http/schemas public.schema.ts

100% Statements 2/2
100% Branches 0/0
100% Functions 0/0
100% Lines 2/2

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16    21x               21x          
import { z } from 'zod';
 
export const publicVaccineScheduleItemSchema = z.object({
  id: z.string().uuid(),
  name: z.string().describe('Vaccine name as published by the Brazilian PNI'),
  description: z.string(),
  recommendedAgeInMonths: z.number().int().describe('Age at which this dose is recommended, in months. 0 means at birth'),
  doseNumber: z.number().int().describe('Which dose of this vaccine this row represents'),
});
 
export const publicVaccineScheduleResponseSchema = z
  .object({
    schedule: z.array(publicVaccineScheduleItemSchema),
  })
  .describe('The public PNI immunization schedule. Reference data — identical for every visitor, tied to no account');