Skip to content

Change memory validation minimum to 6#5561

Open
KroZen-Dev wants to merge 2 commits intopterodactyl:1.0-developfrom
KroZen-Dev:feat/enforce-min-memory
Open

Change memory validation minimum to 6#5561
KroZen-Dev wants to merge 2 commits intopterodactyl:1.0-developfrom
KroZen-Dev:feat/enforce-min-memory

Conversation

@KroZen-Dev
Copy link
Copy Markdown
Contributor

This pull request makes a small but important change to the validation rules for the memory attribute in the Server model. The minimum allowed value for memory has been increased from 0 to 6.

  • Increased the minimum value for the memory field in the Server model validation rules from 0 to 6.Updated memory validation to require a minimum of 6

🔗 Linked Issues: #4912

Updated memory validation to require a minimum of 6.
@voidvalue-dev
Copy link
Copy Markdown
Contributor

@KroZen-Dev The thing is, when the RAM is infinite, it becomes 0.

Added custom validation for memory field to ensure it is either 0 or at least 6.
@KroZen-Dev
Copy link
Copy Markdown
Contributor Author

Fixed the error

@danny6167 danny6167 linked an issue Mar 25, 2026 that may be closed by this pull request
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Minimal ram allocation should be >6MB

2 participants