Current Behavior:
The file kind type currently does not support dynamic file paths for importing file content into a port.
This limitation restricts flexibility when dealing with multiple files or varying file locations.
Proposed Change:
Enhance the file kind type to support dynamic file paths, similar to the functionality already implemented in port YAML.
This change will allow each document processed as file-kind mapping to specify a different file path, providing greater flexibility in file content import.
example importing swagger spec in git-ops fashion:
interfaces:
- name: Petstore
- name: Data Set API (DSAPI)
openApiSpec: file://../dsapi/uspto.yaml
The expectation from mapping this file would be to create two interface entities which have a swagger tab containing the specified OAS files.