Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
fix: feed submission info can be multiple
Browse files Browse the repository at this point in the history
  • Loading branch information
justinemmanuelmercado committed Jun 23, 2020
1 parent b6fc7cb commit a298671
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/sections/feeds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@ import { boolean, Codec, GetInterface, number, optional, string } from 'purify-t

import { ParsingError } from '../error'
import { HttpClient, RequestMeta, Resource } from '../http'
import { ensureString, mwsDate, NextToken, nextToken as nextTokenCodec } from '../parsing'
import {
ensureArray,
ensureString,
mwsDate,
NextToken,
nextToken as nextTokenCodec,
} from '../parsing'

const FEEDS_API_VERSION = '2009-01-01'
interface GetFeedSubmissionListParameters {
Expand All @@ -26,7 +32,7 @@ const FeedSubmissionInfo = Codec.interface({
const GetFeedSubmissionList = Codec.interface({
HasToken: optional(boolean),
NextToken: optional(nextTokenCodec('GetFeedSubmissionList')),
FeedSubmissionInfo: optional(FeedSubmissionInfo),
FeedSubmissionInfo: optional(ensureArray('FeedSubmissionInfo', FeedSubmissionInfo)),
})

type GetFeedSubmissionList = GetInterface<typeof GetFeedSubmissionList>
Expand Down

0 comments on commit a298671

Please sign in to comment.