@mintlify/validation
Advanced tools
Comparing version 0.1.63 to 0.1.64
@@ -6,2 +6,3 @@ import { NavigationGroup } from '@mintlify/models'; | ||
icon: z.ZodOptional<z.ZodString>; | ||
iconType: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-solid", "solid", "thin"]>>; | ||
version: z.ZodOptional<z.ZodString>; | ||
@@ -11,2 +12,3 @@ }, "strict", z.ZodTypeAny, { | ||
icon?: string | undefined; | ||
iconType?: "brands" | "duotone" | "light" | "regular" | "sharp-solid" | "solid" | "thin" | undefined; | ||
version?: string | undefined; | ||
@@ -16,4 +18,5 @@ }, { | ||
icon?: string | undefined; | ||
iconType?: "brands" | "duotone" | "light" | "regular" | "sharp-solid" | "solid" | "thin" | undefined; | ||
version?: string | undefined; | ||
}>; | ||
export declare const navigationSchema: z.ZodArray<z.ZodType<NavigationGroup, z.ZodTypeDef, NavigationGroup>, "many">; |
@@ -0,1 +1,2 @@ | ||
import { iconTypes } from '@mintlify/models'; | ||
import { z } from 'zod'; | ||
@@ -12,2 +13,11 @@ // export to allow type testing against @mintlify/models | ||
icon: z.string({ invalid_type_error: 'Icon must be a string.' }).optional(), | ||
iconType: z | ||
.enum(iconTypes, { | ||
errorMap: function () { | ||
return { | ||
message: 'group iconType must be one of the following strings: brands, duotone, light, sharp-solid, solid, thin', | ||
}; | ||
}, | ||
}) | ||
.optional(), | ||
version: z.string({ invalid_type_error: 'Version must be a string.' }).optional(), | ||
@@ -14,0 +24,0 @@ }, { invalid_type_error: 'Navigation entry must be an object.' }) |
{ | ||
"name": "@mintlify/validation", | ||
"version": "0.1.63", | ||
"version": "0.1.64", | ||
"description": "Validates mint.json files", | ||
@@ -59,3 +59,3 @@ "author": "Mintlify, Inc.", | ||
"@mintlify/eslint-config-typescript": "1.0.7", | ||
"@mintlify/models": "0.0.29", | ||
"@mintlify/models": "0.0.30", | ||
"@mintlify/prettier-config": "1.0.1", | ||
@@ -82,3 +82,3 @@ "@mintlify/ts-config": "1.0.7", | ||
}, | ||
"gitHead": "f9a29f3de6300880517b4748f7b4822c625680c2" | ||
"gitHead": "ebc76997a0bd3685141f7718faabd3ef84ce2092" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
230364
3276