Skip to content

Commit

Permalink
fix: set additionalProperties for metadata to remove strict option in…
Browse files Browse the repository at this point in the history
… zod (#42)
  • Loading branch information
ALPAC-4 authored Apr 17, 2024
1 parent a51bd88 commit 0d84502
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _packages/types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@initia/initia-registry-types",
"version": "0.0.16",
"version": "0.0.17",
"description": "The package provides TypeScript type definitions and Zod integration for initia-registry.",
"types": "./dist/types/index.d.ts",
"exports": {
Expand Down
1 change: 1 addition & 0 deletions _packages/types/src/types/Chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ export interface Chain {
version: string;
[k: string]: unknown;
};
[k: string]: unknown;
};
}
export interface FeeToken {
Expand Down
2 changes: 1 addition & 1 deletion _packages/types/src/zods/Chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ export const ChainSchema = z
.describe("[Optional] The type of minitia and the version of it ")
.optional(),
})
.strict()
.catchall(z.any())
.optional(),
})
.strict()
Expand Down
2 changes: 1 addition & 1 deletion chain.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@
"description": "[Optional] The type of minitia and the version of it "
}
},
"additionalProperties": false
"additionalProperties": true
}
},
"additionalProperties": false,
Expand Down

0 comments on commit 0d84502

Please sign in to comment.