Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate adaptive cards for API plugins in separate files #5731

Open
maisarissi opened this issue Nov 5, 2024 · 0 comments
Open

Generate adaptive cards for API plugins in separate files #5731

maisarissi opened this issue Nov 5, 2024 · 0 comments
Labels
blocked This work can't be done until an external dependent work is done. generator Issues or improvements relater to generation capabilities. status:waiting-for-dependency An issue that has core project dependency that's currently blocking it status:waiting-for-triage An issue that is yet to be reviewed or assigned

Comments

@maisarissi
Copy link
Contributor

Related to: OfficeDev/teams-toolkit#12665

Once TTK supports adaptive cards in separate files, Kiota should generate the adaptive cards for each function in a separate file and add the reference that of the generated files in the API Plugin:

"functions": [
    {
        "name": "search_issues_and_pull_requests",
        "description": "Find issues by state and keyword. This method returns up to 100 results [per page](https://docs.gith",
        "capabilities": {
            "response_semantics": {
                "data_path": "$.items",
                "properties": {
                    "title": "$.title",
                    "subtitle": "$.body",
                    "url": "$.url"
                },
                "static_template": "$[file('search_issues_and_pull_requests_ad.json')]"
            }
        }
    },
    {
        "name": "another_function",
        "description": "Another function",
        "capabilities": {
            "response_semantics": {
                "data_path": "$",
                "properties": {
                    "title": "$.title",
                    "subtitle": "$.id",
                    "url": "$.url"
                },
                "static_template": "$[file('another_function_ad.json')]"
            }
        }
    },
]
@maisarissi maisarissi added generator Issues or improvements relater to generation capabilities. status:waiting-for-triage An issue that is yet to be reviewed or assigned status:waiting-for-dependency An issue that has core project dependency that's currently blocking it blocked This work can't be done until an external dependent work is done. labels Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked This work can't be done until an external dependent work is done. generator Issues or improvements relater to generation capabilities. status:waiting-for-dependency An issue that has core project dependency that's currently blocking it status:waiting-for-triage An issue that is yet to be reviewed or assigned
Projects
Status: Needs Triage 🔍
Development

No branches or pull requests

1 participant