Skip to content

Common path extraction in the align command is not working correctly #8574

@TharaniDJ

Description

@TharaniDJ

Area

None

Description

No response

Steps to Reproduce

This is the Openapi spec I used

https://github.com/docusign/OpenAPI-Specifications/blob/master/admin.rest.swagger-v2.1.json

After running these 2 commands

bal openapi flatten -i docs/spec/openapi.yaml -o docs/spec
bal openapi align -i docs/spec/flattened_openapi.yaml -o docs/spec

I tried to generate a connector using the above file, then I encountered this issue

OpenAPI definition has errors:
paths. Resource .1/organizations/{organizationId}/accounts/{accountId}/dsgroups should start with /
paths. Resource .1/organizations/{organizationId}/accounts/{accountId}/dsgroups/{dsGroupId} should start with /
paths. Resource .1/organizations/{organizationId}/accounts/{accountId}/dsgroups/{dsGroupId}/users should start with /
paths. Resource .1/organizations/{organizationId}/accounts/{accountId}/products/permission_profiles should start with /
paths. Resource .1/organizations/{organizationId}/accounts/{accountId}/products/users/{userId}/permission_profiles should start with /
paths. Resource .1/organizations/{organizationId}/accounts/{accountId}/users should start with /
paths. Resource .1/organizations/{organizationId}/users/dsprofile should start with /
paths. Resource .1/organizations/{organizationId}/users/{userId}/dsprofile should start with /
paths. Resource .1/organizations/{organizationId}/accounts/{accountId}/products/users should start with /
paths. Resource .1/organizations/{organizationId}/accounts/{accountId}/products/permission_profiles/users should start with /

Version

v2.1

Environment Details (with versions)

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions