@kamaalio/hono-standard-openapi 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -3
- package/dist/index.d.ts +2 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -125,9 +125,6 @@ const app = new StandardOpenAPIHono({
|
|
|
125
125
|
|
|
126
126
|
Document that `400` response in each route when it is part of your API contract.
|
|
127
127
|
|
|
128
|
-
The package re-exports `sValidator`, `Hook`, and `flattenErrors` from
|
|
129
|
-
`@hono/standard-validator` when you need the same validation behavior outside a documented route.
|
|
130
|
-
|
|
131
128
|
## Read the OpenAPI document
|
|
132
129
|
|
|
133
130
|
Add `app.doc()` after registering routes. It serves the generated OpenAPI 3.1 JSON at the path you
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
export { $,
|
|
2
|
-
export {
|
|
3
|
-
export { type DocumentConfig, type GeneratorOptions, OpenAPIGenerator, type OpenAPIVersion } from './generator.ts';
|
|
4
|
-
export { ComponentCollector, type ConvertOptions, type JSONSchemaTarget, type NormalizationOptions, convertSchema, } from './json-schema.ts';
|
|
5
|
-
export { type ComponentType, type OpenAPIDefinition, OpenAPIRegistry } from './registry.ts';
|
|
6
|
-
export { type RouteConfig, createRoute, toRoutingPath } from './route.ts';
|
|
7
|
-
export { type JSONSchema, type SchemaIO, type StandardSchema, isStandardJSONSchema, isStandardSchema, } from './standard-schema.ts';
|
|
8
|
-
export { type ComputeInput, type ConvertPathType, type RouteConfigToTypedResponse, type RouteHandler, type RouteHandlerResponse, } from './type-inference.ts';
|
|
9
|
-
export type { ContentObject, MediaTypeObject, ParameterLocation, ReferenceObject, RequestBody, ResponseConfig, RouteConfigBase, RouteMethod, RouteRequest, SchemaObject, SchemaOrReference, } from './types.ts';
|
|
10
|
-
export { flattenErrors, type Hook, sValidator } from '@hono/standard-validator';
|
|
1
|
+
export { $, StandardOpenAPIHono } from './app.ts';
|
|
2
|
+
export { createRoute } from './route.ts';
|
|
11
3
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,3 @@
|
|
|
1
1
|
export { $, StandardOpenAPIHono } from './app.js';
|
|
2
|
-
export {
|
|
3
|
-
export { OpenAPIGenerator } from './generator.js';
|
|
4
|
-
export { ComponentCollector, convertSchema, } from './json-schema.js';
|
|
5
|
-
export { OpenAPIRegistry } from './registry.js';
|
|
6
|
-
export { createRoute, toRoutingPath } from './route.js';
|
|
7
|
-
export { isStandardJSONSchema, isStandardSchema, } from './standard-schema.js';
|
|
8
|
-
export {} from './type-inference.js';
|
|
9
|
-
export { flattenErrors, sValidator } from '@hono/standard-validator';
|
|
2
|
+
export { createRoute } from './route.js';
|
|
10
3
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC"}
|