-
Notifications
You must be signed in to change notification settings - Fork 31
Update json schemas #3861
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
Update json schemas #3861
Conversation
Application metadata allows the following boolean parameters https://github.com/Altinn/altinn-storage/blob/c6918a3422b29501eeb1ff8b41e592deaf9f248f/src/Storage.Interface/Models/ApplicationLogic.cs#L44-L56 Also added description and title for queryParameters on selection components
📝 WalkthroughWalkthroughSchema file adds two new boolean properties ( Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Pre-merge checks and finishing touches❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
src/codegen/Common.ts (1)
374-382: Consider removing duplicate title and description.The title and description set on lines 378-381 duplicate what's already defined in the
IQueryParameterstype definition (lines 298-301). This duplication could lead to maintenance issues if the descriptions need to be updated in the future and one location is missed.If the duplication is necessary for schema generation purposes, consider adding a comment explaining why. Otherwise, apply this diff to remove the redundant calls:
new CG.prop( 'queryParameters', CG.common('IQueryParameters') - .optional() - .setTitle('Query parameters') - .setDescription( - 'A mapping of query string parameters to values. Will be appended to the URL when fetching options.', - ), + .optional(), ),
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
schemas/json/application/application-metadata.schema.v1.json(1 hunks)src/codegen/Common.ts(1 hunks)
🧰 Additional context used
🧬 Code graph analysis (1)
src/codegen/Common.ts (1)
src/codegen/CG.ts (1)
CG(25-57)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
- GitHub Check: Type-checks, eslint, unit tests and SonarCloud
- GitHub Check: Analyze (javascript)
- GitHub Check: Install
🔇 Additional comments (1)
schemas/json/application/application-metadata.schema.v1.json (1)
462-471: Schema properties are valid; backend alignment verification requires manual review.The two boolean properties (
disallowUserCreateanddisallowUserDelete) are correctly defined at lines 462-471 with proper types, titles, and descriptions. The JSON schema is valid.However, the backend alignment verification referenced in the PR objectives (Altinn storage commit c6918a3, ApplicationLogic.cs) cannot be completed in this sandbox environment, as the backend repository is external to this codebase. Verify manually that these schema properties match the corresponding fields in the referenced backend model.
|
|
Btw, the test failures were fixed in #3863. It should be safe to just merge this as-is. |
|
@ivarne I'll leave it to you to merge this when ready. Since it's still open I'll assume you either forgot about it or that there's something left to do. |
Application metadata allows the following boolean parameters https://github.com/Altinn/altinn-storage/blob/c6918a3422b29501eeb1ff8b41e592deaf9f248f/src/Storage.Interface/Models/ApplicationLogic.cs#L44-L56 Also added description and title for queryParameters on selection components
|
✅ Automatic backport successful! A backport PR has been automatically created for the The release branch The cherry-pick was clean with no conflicts. Please review the backport PR when it appears. |
Application metadata allows the following boolean parameters https://github.com/Altinn/altinn-storage/blob/c6918a3422b29501eeb1ff8b41e592deaf9f248f/src/Storage.Interface/Models/ApplicationLogic.cs#L44-L56 Also added description and title for queryParameters on selection components



Application metadata allows the following boolean parameters https://github.com/Altinn/altinn-storage/blob/c6918a3422b29501eeb1ff8b41e592deaf9f248f/src/Storage.Interface/Models/ApplicationLogic.cs#L44-L56
Also added description and title for queryParameters on selection components
Description
Related Issue(s)
Verification/QA
kind/*andbackport*label to this PR for proper release notes groupingSummary by CodeRabbit
Release Notes
New Features
Refactor
✏️ Tip: You can customize this high-level summary in your review settings.