Skip to content

Commit d964b02

Browse files
committedAug 6, 2023
chore: move FormData schema to Api module
1 parent 8d58427 commit d964b02

10 files changed

+42
-24
lines changed
 

‎.changeset/sweet-ladybugs-shop.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"effect-http": patch
3+
---
4+
5+
Move `FormData` schema to `Api` module.

‎docs/modules/Api.ts.md

+16
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ Added in v1.0.0
4040
- [EndpointOptions (interface)](#endpointoptions-interface)
4141
- [EndpointSchemas (interface)](#endpointschemas-interface)
4242
- [InputEndpointSchemas (interface)](#inputendpointschemas-interface)
43+
- [schemas](#schemas)
44+
- [FormData](#formdata)
4345

4446
---
4547

@@ -265,3 +267,17 @@ export interface InputEndpointSchemas {
265267
```
266268

267269
Added in v1.0.0
270+
271+
# schemas
272+
273+
## FormData
274+
275+
FormData schema
276+
277+
**Signature**
278+
279+
```ts
280+
export declare const FormData: Schema.Schema<any, any>
281+
```
282+
283+
Added in v1.0.0

‎docs/modules/Server.ts.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Server.ts
3-
nav_order: 11
3+
nav_order: 10
44
parent: Modules
55
---
66

‎docs/modules/ServerBuilder.ts.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: ServerBuilder.ts
3-
nav_order: 12
3+
nav_order: 11
44
parent: Modules
55
---
66

‎docs/modules/ServerError.ts.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: ServerError.ts
3-
nav_order: 13
3+
nav_order: 12
44
parent: Modules
55
---
66

‎docs/modules/Testing.ts.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Testing.ts
3-
nav_order: 14
3+
nav_order: 13
44
parent: Modules
55
---
66

‎docs/modules/Utils.ts.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Utils.ts
3-
nav_order: 15
3+
nav_order: 14
44
parent: Modules
55
---
66

‎docs/modules/ValidationErrorFormatter.ts.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: ValidationErrorFormatter.ts
3-
nav_order: 16
3+
nav_order: 15
44
parent: Modules
55
---
66

‎src/Api.ts

+15
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,21 @@ export const addGroup =
349349
};
350350
};
351351

352+
const _FormData = Schema.instanceOf(FormData, {
353+
jsonSchema: { type: "string" },
354+
description: "Multipart form data",
355+
});
356+
357+
export {
358+
/**
359+
* FormData schema
360+
*
361+
* @category schemas
362+
* @since 1.0.0
363+
*/
364+
_FormData as FormData,
365+
};
366+
352367
// Internal type helpers
353368

354369
/** @ignore */

‎src/Schemas.ts

-18
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.