types.ts 531 B

12345678910111213141516171819202122232425
  1. import { ServiceClients } from "@adapters/grpcAdapter"
  2. export interface Meta {
  3. synthetic: boolean
  4. /**
  5. * Optional subset of the expected response to validate.
  6. * Only the fields specified here will be compared against the actual response.
  7. * Useful for partial validation of nested objects or arrays.
  8. */
  9. expected?: any
  10. }
  11. export interface Entry {
  12. requestId: string
  13. service: keyof ServiceClients
  14. method: string
  15. request: any
  16. response?: any
  17. status: string
  18. meta: Meta
  19. }
  20. export interface SpecFile {
  21. entries: Entry[]
  22. }