@amritk/adapters 0.2.4 → 0.2.6
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/dist/adapter.d.ts +2 -1
- package/dist/adapter.d.ts.map +1 -0
- package/dist/effect-to-json-schema.d.ts +1 -0
- package/dist/effect-to-json-schema.d.ts.map +1 -0
- package/dist/effect-to-json-schema.js +44 -66267
- package/dist/get-adapter.d.ts +3 -2
- package/dist/get-adapter.d.ts.map +1 -0
- package/dist/get-adapter.js +41 -81917
- package/dist/source-format.d.ts +1 -0
- package/dist/source-format.d.ts.map +1 -0
- package/dist/typebox-to-json-schema.d.ts +1 -0
- package/dist/typebox-to-json-schema.d.ts.map +1 -0
- package/dist/typebox-to-json-schema.js +68 -60
- package/dist/valibot-to-json-schema.d.ts +1 -0
- package/dist/valibot-to-json-schema.d.ts.map +1 -0
- package/dist/valibot-to-json-schema.js +49 -668
- package/dist/zod-to-json-schema.d.ts +1 -0
- package/dist/zod-to-json-schema.d.ts.map +1 -0
- package/dist/zod-to-json-schema.js +60 -14934
- package/package.json +12 -12
package/dist/adapter.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { JSONSchema } from 'json-schema-typed/draft-2020-12';
|
|
2
|
-
import type { SourceFormat } from './source-format';
|
|
2
|
+
import type { SourceFormat } from './source-format.js';
|
|
3
3
|
/**
|
|
4
4
|
* Converts a schema authored in some external library into a Draft 2020-12
|
|
5
5
|
* JSON Schema, which is the single input shape the mjst generators understand.
|
|
@@ -20,3 +20,4 @@ export type Adapter = {
|
|
|
20
20
|
*/
|
|
21
21
|
readonly toJSONSchema: (source: unknown) => JSONSchema | Promise<JSONSchema>;
|
|
22
22
|
};
|
|
23
|
+
//# sourceMappingURL=adapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../src/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAEjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAEnD;;;;;;;;;GASG;AACH,MAAM,MAAM,OAAO,GAAG;IACpB,+EAA+E;IAC/E,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAA;IAC7B;;;;OAIG;IACH,QAAQ,CAAC,YAAY,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,CAAA;CAC7E,CAAA"}
|
|
@@ -9,3 +9,4 @@ import type { JSONSchema } from 'json-schema-typed/draft-2020-12';
|
|
|
9
9
|
* expects on the wire — only stripping the dialect marker.
|
|
10
10
|
*/
|
|
11
11
|
export declare const effectToJsonSchema: (source: unknown) => Promise<JSONSchema>;
|
|
12
|
+
//# sourceMappingURL=effect-to-json-schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"effect-to-json-schema.d.ts","sourceRoot":"","sources":["../src/effect-to-json-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AA4BjE;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB,WAAkB,OAAO,KAAG,OAAO,CAAC,UAAU,CAmB5E,CAAA"}
|