Skip to content

Decouple HTTP and OpenAPI #1878

In review
In review

Description

@fjtirado

Enable HTTP and OpenAPI Execution Without Workflow Engine Dependencies

Problem Statement

Currently, other workflow engine implementations cannot reuse the SDK's HTTP execution and OpenAPI capabilities without pulling in the entire workflow engine infrastructure.

Motivation

The SDK's HTTP transport and OpenAPI processing represent valuable, reusable components that should be available to the broader workflow engine ecosystem. By decoupling these capabilities:

  • Reduce Barrier to Entry: Other engines can adopt proven HTTP/OpenAPI handling without architectural constraints
  • Promote Interoperability: Shared transport layer enables consistent HTTP behavior across implementations
  • Enable Incremental Adoption: Teams can use specific SDK components without committing to the full stack
  • Improve Maintainability: Clear separation of concerns between transport, OpenAPI processing, and workflow execution

Proposed Solution

Extract HTTP and OpenAPI functionality into standalone modules under common/:

  1. openworkflow-common-http: Zero-dependency JDK HTTP transport
  2. openworkflow-common-http-jakarta: Jakarta REST transport implementation
  3. openworkflow-common-openapi: OpenAPI document model and request preparation
  4. openworkflow-common-openapi-jackson: Jackson-based OpenAPI reader

These modules provide:

  • Pluggable converter pattern for custom JSON types
  • No dependencies on workflow contexts or SDK models
  • Clean interfaces for HTTP execution and OpenAPI processing
  • Full compatibility with existing SDK functionality

Benefits

  • For Other Engines: Reuse proven HTTP/OpenAPI implementation without SDK dependencies
  • For SDK Users: Clearer module boundaries and reduced coupling
  • For Maintainers: Better separation of concerns and testability
  • For Ecosystem: Shared foundation for HTTP/OpenAPI handling across implementations

Related

Activity

  1. self-assigned this
    on Nov 26, 2026
  2. added theissue type on Nov 26, 2026
  3. added a commit that references this issue on Nov 26, 2026
    ef2e4cf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions