Skip to content

feat: support URL input for /v1/validate#52

Open
pasibun wants to merge 1 commit intoitalia:mainfrom
pasibun:feature/support-validate-url-input
Open

feat: support URL input for /v1/validate#52
pasibun wants to merge 1 commit intoitalia:mainfrom
pasibun:feature/support-validate-url-input

Conversation

@pasibun
Copy link

@pasibun pasibun commented Mar 11, 2026

Summary

  • add support for url query parameter on /v1/validate when request body is empty
  • fetch and validate remote content over http/https with a 10s timeout
  • keep existing body-based behavior unchanged
  • document URL usage in README
  • add endpoint tests for URL success and failure cases

Why

This allows clients to validate a hosted publiccode.yml directly without first downloading and piping file contents into --data-binary.

Testing

  • go test ./...

@pasibun pasibun closed this Mar 11, 2026
@pasibun
Copy link
Author

pasibun commented Mar 11, 2026

#32

@pasibun pasibun reopened this Mar 11, 2026
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