Skip to content

Add requires field to package manifest output#1612

Merged
teresaromero merged 4 commits intoelastic:mainfrom
teresaromero:show-requires
Mar 10, 2026
Merged

Add requires field to package manifest output#1612
teresaromero merged 4 commits intoelastic:mainfrom
teresaromero:show-requires

Conversation

@teresaromero
Copy link
Copy Markdown
Contributor

@teresaromero teresaromero commented Mar 10, 2026

Add requires field to package manifest output

Expose the package-spec requires field in registry responses so clients can see integration package dependencies (input and content) before downloading.

Changes

  • Added PackageRequirement and PackageRequirements types and a requires field on BasePackage.
  • The field is read from manifest.yml and included in GET /package/{name}/{version} and GET /search when present.
  • Packages without requires in the manifest omit the key from the JSON (no change for existing packages).

Dependencies

This PR should be merged after #1605. That PR is required to be merged first.

@teresaromero teresaromero requested a review from a team as a code owner March 10, 2026 08:50
@prodsecmachine
Copy link
Copy Markdown

prodsecmachine commented Mar 10, 2026

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

teresaromero added a commit to teresaromero/package-registry that referenced this pull request Mar 10, 2026
teresaromero added a commit to teresaromero/package-registry that referenced this pull request Mar 10, 2026
- Introduced `PackageRequirement` and `PackageRequirements` types to define dependencies on other packages.
- Updated the `BasePackage` struct to include a `Requires` field for package dependencies.
- Modified various JSON files to include `requires` field with input dependencies for `sql_input` version `0.2.0`.
…s in the `PackageRequirement` struct to enforce mandatory dependencies.
@elasticmachine
Copy link
Copy Markdown

💚 Build Succeeded

History

@teresaromero teresaromero mentioned this pull request Mar 10, 2026
Copy link
Copy Markdown
Contributor

@mrodm mrodm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@teresaromero teresaromero merged commit 9701314 into elastic:main Mar 10, 2026
5 checks passed
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.

Support building integration packages with dependencies

4 participants