-
Notifications
You must be signed in to change notification settings - Fork 3
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
chore(webapi): Swagger punctuation clean-up #1351
Conversation
📝 WalkthroughWalkthroughThis pull request includes a series of updates primarily focused on enhancing documentation consistency across various classes and schemas. The changes involve adding periods to the end of sentences in XML documentation comments and JSON schema descriptions to ensure uniformity. Additionally, there are minor adjustments to comment typographical errors and improvements in handling null values within specific converter classes. The overall structure and functionality of the affected classes and schemas remain unchanged. Changes
Possibly related PRs
Suggested reviewers
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
Quality Gate failedFailed conditions |
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
🧹 Outside diff range and nitpick comments (1)
src/Digdir.Domain.Dialogporten.Application/Features/V1/Common/Content/DialogContentInputConverter.cs (1)
13-16
: Consider addressing the TODO comment.There's a TODO comment indicating this implementation needs team discussion. Since this PR touches documentation, it might be a good opportunity to schedule that discussion and potentially remove or update this TODO.
Would you like me to create a GitHub issue to track this TODO for team discussion?
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
📒 Files selected for processing (20)
- docs/schema/V1/swagger.verified.json (55 hunks)
- src/Digdir.Domain.Dialogporten.Application/Features/V1/Common/Content/ContentValueDto.cs (1 hunks)
- src/Digdir.Domain.Dialogporten.Application/Features/V1/Common/Content/DialogContentInputConverter.cs (1 hunks)
- src/Digdir.Domain.Dialogporten.Application/Features/V1/Common/Content/TransmissionContentInputConverter.cs (1 hunks)
- src/Digdir.Domain.Dialogporten.Application/Features/V1/Common/Localizations/LocalizationDto.cs (1 hunks)
- src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/DialogTransmissions/Queries/Get/GetDialogTransmissionDto.cs (1 hunks)
- src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/DialogTransmissions/Queries/Search/SearchDialogTransmissionDto.cs (1 hunks)
- src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries/Get/GetDialogDto.cs (8 hunks)
- src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries/Search/SearchDialogDto.cs (2 hunks)
- src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries/Search/SearchDialogDtoBase.cs (3 hunks)
- src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Commands/Create/CreateDialogDto.cs (11 hunks)
- src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Commands/Update/UpdateDialogDto.cs (5 hunks)
- src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Queries/Get/GetDialogDto.cs (9 hunks)
- src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Queries/Search/SearchDialogDto.cs (2 hunks)
- src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Queries/Search/SearchDialogDtoBase.cs (3 hunks)
- src/Digdir.Domain.Dialogporten.GraphQL/Program.cs (0 hunks)
- src/Digdir.Domain.Dialogporten.Infrastructure/Altinn/Authorization/AltinnAuthorizationClient.cs (0 hunks)
- src/Digdir.Domain.Dialogporten.Infrastructure/HealthChecks/RedisHealthCheck.cs (0 hunks)
- src/Digdir.Domain.Dialogporten.Service/Program.cs (0 hunks)
- tests/Digdir.Domain.Dialogporten.Application.Unit.Tests/Features/V1/Common/Extensions/ClaimsPrincipalExtensionsTests.cs (3 hunks)
💤 Files with no reviewable changes (4)
- src/Digdir.Domain.Dialogporten.GraphQL/Program.cs
- src/Digdir.Domain.Dialogporten.Infrastructure/Altinn/Authorization/AltinnAuthorizationClient.cs
- src/Digdir.Domain.Dialogporten.Infrastructure/HealthChecks/RedisHealthCheck.cs
- src/Digdir.Domain.Dialogporten.Service/Program.cs
✅ Files skipped from review due to trivial changes (14)
- docs/schema/V1/swagger.verified.json
- src/Digdir.Domain.Dialogporten.Application/Features/V1/Common/Content/ContentValueDto.cs
- src/Digdir.Domain.Dialogporten.Application/Features/V1/Common/Content/TransmissionContentInputConverter.cs
- src/Digdir.Domain.Dialogporten.Application/Features/V1/Common/Localizations/LocalizationDto.cs
- src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/DialogTransmissions/Queries/Get/GetDialogTransmissionDto.cs
- src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/DialogTransmissions/Queries/Search/SearchDialogTransmissionDto.cs
- src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries/Get/GetDialogDto.cs
- src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries/Search/SearchDialogDto.cs
- src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries/Search/SearchDialogDtoBase.cs
- src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Commands/Create/CreateDialogDto.cs
- src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Commands/Update/UpdateDialogDto.cs
- src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Queries/Get/GetDialogDto.cs
- src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Queries/Search/SearchDialogDto.cs
- src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Queries/Search/SearchDialogDtoBase.cs
🔇 Additional comments (2)
tests/Digdir.Domain.Dialogporten.Application.Unit.Tests/Features/V1/Common/Extensions/ClaimsPrincipalExtensionsTests.cs (1)
12-14
: Modern collection initializer syntax looks good!The update to use collection initializer syntax
[]
instead ofnew[]
makes the code more concise while maintaining readability. This syntax was introduced in C# 12.Let's verify the project's C# language version to ensure compatibility:
Consider updating similar array initializations across the codebase to maintain consistency. I can help identify other occurrences if you'd like.
Also applies to: 28-30, 44-47
✅ Verification successful
Modern collection initializer syntax is compatible and safe to use
The project uses .NET 8.0 (SDK version 8.0.403) as specified in global.json and Directory.Build.props, which fully supports C# 12 features including the collection initializer syntax
[]
. The analysis of project files confirms this is a safe and appropriate modernization.🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Check if the project supports C# 12 features # Look for language version in project file or global.json # Find all relevant project configuration files fd -e csproj -e json . --exec grep -l "LangVersion\|languageVersion"Length of output: 70
Script:
#!/bin/bash # Let's try a different approach to find project files and check their content # First, find all csproj files fd -e csproj . | while read -r file; do echo "=== $file ===" cat "$file" done # Also check Directory.Build.props if it exists if [ -f "Directory.Build.props" ]; then echo "=== Directory.Build.props ===" cat "Directory.Build.props" fi # Check global.json if it exists if [ -f "global.json" ]; then echo "=== global.json ===" cat "global.json" fiLength of output: 34941
src/Digdir.Domain.Dialogporten.Application/Features/V1/Common/Content/DialogContentInputConverter.cs (1)
14-14
: LGTM: Documentation improvement aligns with PR objectives.The addition of proper sentence structure in the documentation comment is consistent with the PR's goal of cleaning up documentation.
Summary by CodeRabbit
Documentation Improvements
Code Cleanup
Configuration Updates