podexit
    Preparing search index...

    Function parsePublisherPolicy

    • Validates policy data; throws a zod error naming the offending field.

      Parameters

      • data: unknown

      Returns {
          $schema?: string;
          dataVersion: string;
          publishers: {
              checked: string;
              id: string;
              includesSubdependencies?: boolean;
              lastMajorOnCocoaPods: number;
              name: string;
              pods: string[];
              source: string;
              stoppedPublishing: string;
              summary: string;
              swiftPackage?: { note: string; url: string };
          }[];
      }

      • Optional$schema?: string
      • dataVersion: string

        Version of the data, separate from the package version: YYYY.MM.DD of the last change.

      • publishers: {
            checked: string;
            id: string;
            includesSubdependencies?: boolean;
            lastMajorOnCocoaPods: number;
            name: string;
            pods: string[];
            source: string;
            stoppedPublishing: string;
            summary: string;
            swiftPackage?: { note: string; url: string };
        }[]