Skip to content

Commit

Permalink
fix(website): fix api docs error (#352)
Browse files Browse the repository at this point in the history
closes #348
  • Loading branch information
hugomrdias authored Aug 30, 2021
1 parent f9c33ac commit 073d5aa
Show file tree
Hide file tree
Showing 4 changed files with 288 additions and 126 deletions.
2 changes: 1 addition & 1 deletion packages/client/test/importer.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export const importDirectory = async (files) => {
const entries = files.map((file) => ({
// @ts-expect-error - webkitRelativePath is not known
path: file.webkitRelativePath || file.name,
// @ts-expect-error - file.stream() isn't typed as AsyncIterable.
// file.stream() isn't typed as AsyncIterable.
content: /** @type {AsyncIterable<Uint8Array>} */ (file.stream()),
}))

Expand Down
3 changes: 3 additions & 0 deletions packages/website/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/// <reference types="next" />
/// <reference types="next/types/global" />
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
10 changes: 5 additions & 5 deletions packages/website/public/schema.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
openapi: '3.0.2'
openapi: 3.0.0
info:
title: NFT Storage API
version: '1.0'
Expand Down Expand Up @@ -45,7 +45,7 @@ paths:
items:
type: string
format: binary
*/*:
'*/*':
schema:
type: string
format: binary
Expand All @@ -57,7 +57,7 @@ paths:
schema:
$ref: '#/components/schemas/UploadResponse'
'400':
$ref: '#/components/responses/badRequest'
$ref: '#/components/responses/badRequest'
'401':
$ref: '#/components/responses/unauthorized'
'403':
Expand Down Expand Up @@ -472,8 +472,8 @@ components:
required: false
schema:
type: string
format: date-time # RFC 3339, section 5.6
example: "2020-07-27T17:32:28Z"
format: date-time # RFC 3339, section 5.6
example: '2020-07-27T17:32:28Z'
limit:
description: Max records to return
name: limit
Expand Down
Loading

0 comments on commit 073d5aa

Please sign in to comment.