Skip to content

Zod schema error for /v1/news/named/stolaf #908

Description

@drewvolz
  xxx GET /v1/news/named/stolaf 500 813ms -

  ZodError: [
    {
      "code": "invalid_union",
      "unionErrors": [
        {
          "issues": [
            {
              "code": "invalid_literal",
              "expected": "image",
              "path": [
                3,
                "_embedded",
                "wp:featuredmedia",
                0,
                "media_type"
              ],
              "message": "Invalid literal value, expected \"image\""
            }
          ],
          "name": "ZodError"
        },
        {
          "issues": [
            {
              "code": "invalid_type",
              "expected": "string",
              "received": "undefined",
              "path": [
                3,
                "_embedded",
                "wp:featuredmedia",
                0,
                "media_type"
              ],
              "message": "Required"
            }
          ],
          "name": "ZodError"
        }
      ],
      "path": [
        3,
        "_embedded",
        "wp:featuredmedia",
        0,
        "media_type"
      ],
      "message": "Invalid input"
    },
    {
      "code": "invalid_type",
      "expected": "object",
      "received": "undefined",
      "path": [
        3,
        "_embedded",
        "wp:featuredmedia",
        0,
        "media_details"
      ],
      "message": "Required"
    },
    {
      "code": "invalid_type",
      "expected": "string",
      "received": "undefined",
      "path": [
        3,
        "_embedded",
        "wp:featuredmedia",
        0,
        "source_url"
      ],
      "message": "Required"
    }
  ]

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions