Skip to content

feat(openapi-infer): add source option for separate source directory#2

Merged
edu-diaz merged 1 commit intomainfrom
feat/source-option
Mar 23, 2026
Merged

feat(openapi-infer): add source option for separate source directory#2
edu-diaz merged 1 commit intomainfrom
feat/source-option

Conversation

@edu-diaz
Copy link
Copy Markdown
Contributor

@edu-diaz edu-diaz commented Mar 23, 2026

Summary

  • Adds --option source=DIR to pacto-plugin-openapi-infer to specify the source code directory separately from the bundle directory
  • Relative paths resolve relative to the bundle directory; absolute paths used as-is
  • Enables use cases where Go/Python source lives outside the bundle (e.g., repo root vs pactos/my-service/)

When the source code lives outside the bundle directory (e.g., Go source
at the repo root while the bundle is in pactos/my-service/), the plugin
now supports --option source=DIR to specify where to scan for frameworks.

Relative paths are resolved relative to the bundle directory.
@edu-diaz edu-diaz merged commit c899745 into main Mar 23, 2026
3 checks passed
@edu-diaz edu-diaz deleted the feat/source-option branch March 23, 2026 13:34
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