Comparing version 0.8.1-alpha-20240611081545-285d13e9d358a9063993a24bc907fc2cc1d62328 to 0.8.1
{ | ||
"name": "fets", | ||
"version": "0.8.1-alpha-20240611081545-285d13e9d358a9063993a24bc907fc2cc1d62328", | ||
"version": "0.8.1", | ||
"description": "TypeScript HTTP Framework focusing on e2e type-safety, easy setup, performance & great developer experience", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
@@ -5,4 +5,4 @@ /// <reference types="urlpattern-polyfill" /> | ||
import type { ErrorHandler, FetchAPI, ServerAdapter, ServerAdapterOptions, ServerAdapterPlugin, ServerAdapterRequestHandler } from '@whatwg-node/server'; | ||
import { ClientTypedResponsePromise } from './client/clientResponse.js'; | ||
import { ClientRequestInit } from './client/types.js'; | ||
import type { ClientTypedResponsePromise } from './client/clientResponse.js'; | ||
import type { ClientRequestInit } from './client/types.js'; | ||
import type { SwaggerUIOpts } from './plugins/openapi.js'; | ||
@@ -169,9 +169,18 @@ import type { HTTPMethod, StatusCode, TypedRequest, TypedResponse, TypedResponseWithJSONStatusMap } from './typed-fetch.js'; | ||
}; | ||
type ObjectSchemaWithPrimitiveProperties = JSONSchema & { | ||
type: 'object'; | ||
properties: Record<string, { | ||
type: 'string' | 'number' | 'integer' | 'boolean' | 'null'; | ||
}>; | ||
}; | ||
type ObjectSchema = JSONSchema & { | ||
type: 'object'; | ||
}; | ||
export type RouteSchemas = { | ||
request?: { | ||
headers?: JSONSchema; | ||
params?: JSONSchema; | ||
query?: JSONSchema; | ||
headers?: ObjectSchemaWithPrimitiveProperties; | ||
params?: ObjectSchemaWithPrimitiveProperties; | ||
query?: ObjectSchema; | ||
json?: JSONSchema; | ||
formData?: JSONSchema; | ||
formData?: ObjectSchema; | ||
}; | ||
@@ -178,0 +187,0 @@ responses?: StatusCodeMap<JSONSchema>; |
Sorry, the diff of this file is not supported yet
258372
3701