-
Notifications
You must be signed in to change notification settings - Fork 8.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Add zod schemas for app metadata living in config.json #18466
Conversation
Fixes calcom#14808 Add zod schemas for app metadata in `config.json`. * Import `appDataSchemas` and `appKeysSchemas` from `apps.schemas.generated` in `packages/app-store/appStoreMetaData.ts`. * Use `appDataSchemas` and `appKeysSchemas` to parse the metadata in `packages/app-store/appStoreMetaData.ts`. * Update the `appStoreMetadata` object to use the parsed metadata in `packages/app-store/appStoreMetaData.ts`. * Import `appDataSchemas` and `appKeysSchemas` from `apps.schemas.generated` in `packages/app-store/getNormalizedAppMetadata.ts`. * Use `appDataSchemas` and `appKeysSchemas` to parse the metadata in `packages/app-store/getNormalizedAppMetadata.ts`. * Update the `getNormalizedAppMetadata` function to use the parsed metadata in `packages/app-store/getNormalizedAppMetadata.ts`. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/calcom/cal.com/issues/14808?shareId=XXXX-XXXX-XXXX-XXXX).
@AritraDey-Dev is attempting to deploy a commit to the cal Team on Vercel. A member of the Team first needs to authorize it. |
|
Graphite Automations"Add consumer team as reviewer" took an action on this PR • (01/06/25)1 reviewer was added to this PR based on Keith Williams's automation. "Add community label" took an action on this PR • (01/06/25)1 label was added to this PR based on Keith Williams's automation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @AritraDey-Dev , unit tests are failing, can you please fix this 🙏
Don't get your solution. |
Fixes #14808
Add zod schemas for app metadata in
config.json
.appDataSchemas
andappKeysSchemas
fromapps.schemas.generated
inpackages/app-store/appStoreMetaData.ts
.appDataSchemas
andappKeysSchemas
to parse the metadata inpackages/app-store/appStoreMetaData.ts
.appStoreMetadata
object to use the parsed metadata inpackages/app-store/appStoreMetaData.ts
.appDataSchemas
andappKeysSchemas
fromapps.schemas.generated
inpackages/app-store/getNormalizedAppMetadata.ts
.appDataSchemas
andappKeysSchemas
to parse the metadata inpackages/app-store/getNormalizedAppMetadata.ts
.getNormalizedAppMetadata
function to use the parsed metadata inpackages/app-store/getNormalizedAppMetadata.ts
.For more details, open the Copilot Workspace session.