Skip to content
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

feat: generate orval types with dependent features #4902

Merged
merged 3 commits into from
Oct 2, 2023

Conversation

kwasniew
Copy link
Contributor

@kwasniew kwasniew commented Oct 2, 2023

About the changes

Generated orval types and actual usage of the type in dependent features hook.

Fix incorrect type generated by orval for flat sdk context schema.

Important files

Discussion points

@vercel
Copy link

vercel bot commented Oct 2, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 2, 2023 10:19am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Oct 2, 2023 10:19am

@@ -7,7 +7,7 @@ export const sdkFlatContextSchema = {
description: 'The Unleash context with flattened properties',
type: 'object',
required: ['appName'],
additionalProperties: { type: 'string' },
additionalProperties: true,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

orval was generating incorrect type with type: 'string' on additional properties

@kwasniew kwasniew merged commit 751bc46 into main Oct 2, 2023
15 of 16 checks passed
@kwasniew kwasniew deleted the update-orval-types-dependent-features branch October 2, 2023 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants