@orpc/openapi 0.0.0-next.2f8ca7f → 0.0.0-next.568a5ad
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/index.js +6 -0
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -4051,6 +4051,12 @@ function zodToJsonSchema(schema, options) {
|
|
|
4051
4051
|
case "ip":
|
|
4052
4052
|
json.format = Format.IPv4;
|
|
4053
4053
|
break;
|
|
4054
|
+
case "jwt":
|
|
4055
|
+
json.pattern = "^[A-Za-z0-9-_]+\\.[A-Za-z0-9-_]+\\.[A-Za-z0-9-_]*$";
|
|
4056
|
+
break;
|
|
4057
|
+
case "base64url":
|
|
4058
|
+
json.pattern = "^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$";
|
|
4059
|
+
break;
|
|
4054
4060
|
default: {
|
|
4055
4061
|
const _expect = check.kind;
|
|
4056
4062
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orpc/openapi",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.0-next.
|
|
4
|
+
"version": "0.0.0-next.568a5ad",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://orpc.unnoq.com",
|
|
7
7
|
"repository": {
|
|
@@ -37,16 +37,16 @@
|
|
|
37
37
|
"escape-string-regexp": "^5.0.0",
|
|
38
38
|
"json-schema-typed": "^8.0.1",
|
|
39
39
|
"openapi3-ts": "^4.4.0",
|
|
40
|
-
"@orpc/
|
|
41
|
-
"@orpc/
|
|
42
|
-
"@orpc/
|
|
43
|
-
"@orpc/
|
|
44
|
-
"@orpc/
|
|
40
|
+
"@orpc/shared": "0.0.0-next.568a5ad",
|
|
41
|
+
"@orpc/zod": "0.0.0-next.568a5ad",
|
|
42
|
+
"@orpc/contract": "0.0.0-next.568a5ad",
|
|
43
|
+
"@orpc/server": "0.0.0-next.568a5ad",
|
|
44
|
+
"@orpc/transformer": "0.0.0-next.568a5ad"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@readme/openapi-parser": "^2.6.0",
|
|
48
48
|
"hono": "^4.6.12",
|
|
49
|
-
"zod": "^3.
|
|
49
|
+
"zod": "^3.24.1"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"build": "tsup --clean --sourcemap --entry.index=src/index.ts --entry.fetch=src/fetch/index.ts --format=esm --onSuccess='tsc -b --noCheck'",
|