Mark take and page as optional in Swagger for CreateCombinationDto#63
Merged
josueJouvin merged 2 commits intomainfrom Dec 11, 2025
Merged
Mark take and page as optional in Swagger for CreateCombinationDto#63josueJouvin merged 2 commits intomainfrom
josueJouvin merged 2 commits intomainfrom
Conversation
Co-authored-by: josueJouvin <114698652+josueJouvin@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Make take and page properties optional in DTO
Mark take and page as optional in Swagger for CreateCombinationDto
Dec 11, 2025
josueJouvin
approved these changes
Dec 11, 2025
josueJouvin
approved these changes
Dec 11, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
takeandpagefields inCreateCombinationDtowere marked as optional at the validation layer but required in Swagger documentation, causing type generation tools and API consumers to treat them as mandatory.Changes
required: falseto@ApiProperty()decorators fortakeandpagefields inCreateCombinationDtoThese fields already had
@IsOptional()validators and the service handles them with defaults (take ?? 5,pagefor offset calculation), but the OpenAPI spec was incorrectly marking them as required.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
checkpoint.prisma.io/usr/local/bin/node /usr/local/bin/node /home/REDACTED/work/StyleMind_Backend/StyleMind_Backend/node_modules/prisma/build/child {"product":"prisma","version":"6.18.0","cli_install_type":"local","information":"","local_timestamp":"2025-12-11T00:49:40Z","project_hash":"6b0c20ab","cli_path":"/home/REDACTED/work/StyleMind_Backend/StyleMind_Backend/node_modules/@prisma/client/node_module(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.