Skip to content

Validate documented transfers.groups YAML - #273

Closed
snapetech wants to merge 1 commit into
mainfrom
agent/validate-transfers-groups
Closed

Validate documented transfers.groups YAML#273
snapetech wants to merge 1 commit into
mainfrom
agent/validate-transfers-groups

Conversation

@snapetech

Copy link
Copy Markdown
Owner

Summary

  • normalize the documented transfers.groups compatibility placement before strict options validation
  • preserve top-level groups precedence while filling missing nested values
  • validate regex patterns after compatibility normalization

Reproduction

POST /api/v0/options/yaml/validate returned "Invalid YAML configuration" for the transfers.groups layout shipped in config/slskd.example.yml, even though the runtime YAML provider accepts and binds that layout.

Tests

  • dotnet test tests/slskd.Tests.Unit/slskd.Tests.Unit.csproj -c Release --no-restore --filter "FullyQualifiedName~OptionsControllerTests|FullyQualifiedName~YamlConfigurationSourceTests"
  • 19 passed

@snapetech snapetech closed this Jul 17, 2026
@snapetech
snapetech deleted the agent/validate-transfers-groups branch July 24, 2026 17:36
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.

1 participant