alpha

Gives coding guidelines for writing Power Platform custom connector files: Swagger 2.0 definitions, API properties and settings with Microsoft extensions.
title: Power Platform Connectors Schema Development Instructions
description: 'Comprehensive development guidelines for Power Platform Custom Connectors using JSON Schema definitions. Covers API definitions (Swagger 2.0), API properties, and settings configuration with Microsoft extensions.'
applyTo: '**/apiDefinition.swagger.json, **/apiProperties.json'
These instructions apply automatically to the standard connector definition and properties filenames. Attach them explicitly when working on a connector's settings.json, schema files, or documentation with other names; a generic settings.json filename also appears in unrelated projects. Keep the Swagger 2.0 format required by the [custom connector importer](https://learn.microsoft.com/en-us/connectors/custom-connectors/define-openapi-definition).
This workspace contains JSON Schema definitions for Power Platform Custom Connectors, specifically for the paconn (Power Apps Connector) tool. The schemas validate and provide IntelliSense for:
x-ms-* prefixes.date-no-tz and html.Always validate against Swagger 2.0 spec - The schema enforces strict Swagger 2.0 compliance
Microsoft Extensions for Operations:
x-ms-summary: Use this to provide user-friendly display names and ensure you use title case formatting.x-ms-visibility: Use this to control parameter visibility with values of important, advanced, or internal.x-ms-trigger: Use this to mark operations as triggers with values of batch or single.x-ms-trigger-hint: Use this to provide helpful hint text that guides users when working with triggers.x-ms-trigger-metadata: Use this to define trigger configuration settings including kind and mode properties.x-ms-notification: Use this to configure webhook operations for real-time notifications.x-ms-pageable: Use this to enable pagination functionality by specifying the nextLinkName property.x-ms-safe-operation: Use this to mark POST operations as safe when they don't have side effects.x-ms-no-generic-test: Use this to disable automatic testing for specific operations.x-ms-operation-context: Use this to configure operation simulation settings for testing purposes.Microsoft Extensions for Parameters:
x-ms-dynamic-list: Use this to enable dynamic dropdown lists populated from API calls.x-ms-dynamic-values: Use this to configure dynamic value sources that populate parameter options.x-ms-dynamic-tree: Use this to create hierarchical selectors for nested data structures.x-ms-dynamic-schema: Use this to allow runtime schema changes based on user selections.x-ms-dynamic-properties: Use this for dynamic property configuration that adapts to context.x-ms-enum-values: Use this to provide enhanced enum definitions with display names for better user experience.x-ms-test-value: Use this to provide sample values for testing, but never include secrets or sensitive data.x-ms-trigger-value: Use this to specify values specifically for trigger parameters with value-collection and value-path properties.x-ms-url-encoding: Use this to specify URL encoding style as either single or double (defaults to single).x-ms-parameter-location: Use this to provide parameter location hints for the API (AutoRest extension - ignored by Power Platform).x-ms-localizeDefaultValue: Use this to enable localization for default parameter values.x-ms-skip-url-encoding: Use this to skip URL encoding for path parameters (AutoRest extension - ignored by Power Platform).Microsoft Extensions for Schemas:
x-ms-notification-url: Use this to mark a schema property as a notification URL for webhook configurations.x-ms-media-kind: Use this to specify the media type for content, with supported values of image or audio.x-ms-enum: Use this to provide enhanced enum metadata (AutoRest extension - ignored by Power Platform).Root-Level Extensions:
x-ms-capabilities: Use this to define connector capabilities such as file-picker and testConnection functionality.x-ms-connector-metadata: Use this to provide additional connector metadata beyond the standard properties.x-ms-docs: Use this to configure documentation settings and references for the connector.x-ms-deployment-version: Use this to track version information for deployment management.x-ms-api-annotation: Use this to add API-level annotations for enhanced functionality.Path-Level Extensions:
x-ms-notification-content: Use this to define notification content schemas for webhook path items.Operation-Level Capabilities:
x-ms-capabilities (at operation level): Use this to enable operation-specific capabilities such as chunkTransfer for large file transfers.Security Considerations:
securityDefinitions for your API to ensure proper authentication.oauth2 for modern APIs, apiKey for simple token authentication, and consider basic auth only for internal/legacy systems.Parameter Best Practices:
description fields to help users understand each parameter's purpose.x-ms-summary for better user experience (title case is required).format values (including Power Platform extensions) to enable proper data handling.Power Platform Format Extensions:
date-no-tz: This represents a date-time that has no time-offset information.html: This format tells clients to emit an HTML editor when editing and an HTML viewer when viewing content.int32, int64, float, double, byte, binary, date, date-time, password, email, uri, uuid.Connection Parameters:
string, securestring, or oauthSetting.allowedValues for dropdown options when appropriate.Policy Templates:
routerequesttoendpoint for backend routing to different API endpoints.setqueryparameter for setting default values on query parameters.updatenextlink for pagination scenarios to handle paging correctly.pollingtrigger for trigger operations that require polling behavior.Branding and Metadata:
iconBrandColor as this property is required for all connectors.capabilities to specify whether your connector supports actions or triggers.publisher and stackOwner values to identify the connector's ownership.Environment Configuration:
environment that matches the validation pattern.powerAppsUrl and flowUrl for your target environment.File References:
apiProperties.json and apiDefinition.swagger.json.swagger: "2.0", info (with title and version), pathsproperties with iconBrandColor^x-(?!ms-) pattern for non-Microsoft extensions/ for API paths^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$^[^{}/ :\\\\]+(?::\\d+)?$ (no spaces, protocols, or paths)securityDefinitions objectbasic, apiKey, oauth2)string, number, integer, boolean, array, file)important, advanced, or internalbatch or single#/definitions/, #/parameters/, or #/responses/required: truehttp, https, ws, wss)consumes and produces{
"get": {
"operationId": "GetItems",
"summary": "Get items",
"x-ms-summary": "Get Items",
"x-ms-visibility": "important",
"description": "Retrieves a list of items from the API",
"parameters": [
{
"name": "category",
"in": "query",
"type": "string",
"x-ms-summary": "Category",
"x-ms-visibility": "important",
"x-ms-dynamic-values": {
"operationId": "GetCategories",
"value-path": "id",
"value-title": "name"
}
}
],
"responses": {
"200": {
"description": "Success",
"x-ms-summary": "Success",
"schema": {
"type": "object",
"properties": {
"items": {
"type": "array",
"x-ms-summary": "Items",
"items": {
"$ref": "#/definitions/Item"
}
}
}
}
}
}
}
}
{
"get": {
"operationId": "WhenItemCreated",
"x-ms-summary": "When an Item is Created",
"x-ms-trigger": "batch",
"x-ms-trigger-hint": "To see it work now, create an item",
"x-ms-trigger-metadata": {
"kind": "query",
"mode": "polling"
},
"x-ms-pageable": {
"nextLinkName": "@odata.nextLink"
}
}
}
{
"name": "dynamicSchema",
"in": "body",
"schema": {
"x-ms-dynamic-schema": {
"operationId": "GetSchema",
"parameters": {
"table": {
"parameter": "table"
}
},
"value-path": "schema"
}
}
}
{
"x-ms-capabilities": {
"file-picker": {
"open": {
"operationId": "OneDriveFilePickerOpen",
"parameters": {
"dataset": {
"value-property": "dataset"
}
}
},
"browse": {
"operationId": "OneDriveFilePickerBrowse",
"parameters": {
"dataset": {
"value-property": "dataset"
}
}
},
"value-title": "DisplayName",
"value-collection": "value",
"value-folder-property": "IsFolder",
"value-media-property": "MediaType"
}
}
}
{
"x-ms-capabilities": {
"testConnection": {
"operationId": "TestConnection",
"parameters": {
"param1": "literal-value"
}
}
}
}
{
"x-ms-operation-context": {
"simulate": {
"operationId": "SimulateOperation",
"parameters": {
"param1": {
"parameter": "inputParam"
}
}
}
}
}
{
"type": "oauthSetting",
"oAuthSettings": {
"identityProvider": "oauth2",
"clientId": "your-client-id",
"scopes": ["scope1", "scope2"],
"redirectMode": "Global"
}
}
{
"securityDefinitions": {
"oauth2": {
"type": "oauth2",
"flow": "accessCode",
"authorizationUrl": "https://api.example.com/oauth/authorize",
"tokenUrl": "https://api.example.com/oauth/token",
"scopes": {
"read": "Read access",
"write": "Write access"
}
},
"apiKey": {
"type": "apiKey",
"name": "X-API-Key",
"in": "header"
}
}
}
Note: Maximum of two security definitions can coexist, but "None" authentication cannot be combined with other methods.
{
"x-ms-dynamic-values": {
"operationId": "GetItems",
"value-path": "id",
"value-title": "name"
}
}
{
"templateId": "routerequesttoendpoint",
"title": "Route to backend",
"parameters": {
"x-ms-apimTemplate-operationName": ["GetData"],
"x-ms-apimTemplateParameter.newPath": "/api/v2/data"
}
}
swagger: "2.0", info.title, info.version, paths^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/x-ms-* for Microsoft extensions, ^x-(?!ms-) for othersx-ms-visibility, x-ms-trigger, parameter types#/definitions/, #/parameters/, or #/responses/required: trueformData parameters, not in schemasx-ms-dynamic-schema with fixed schema propertiesx-ms-trigger-metadata requires both kind and modex-ms-pageable requires nextLinkName propertyopen operation and required propertiesx-ms-test-valuex-ms-operation-context requires a simulate object with operationIdx-ms-notification-content must define proper schema structurex-ms-media-kind only supports image or audio valuesx-ms-trigger-value must have at least one property (value-collection or value-path)paconn validate --api-def apiDefinition.swagger.jsonRemember: These schemas ensure your Power Platform connectors are properly formatted and will work correctly in the Power Platform ecosystem.
© GitHub, Inc. · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com


Dataverse Python File Operations
Guides an AI coding assistant on uploading small and large files to Dataverse with the Python SDK, including chunking, validation and practical examples.
rule-file, best-practices, code-generation, python, api, database, data-engineering, for-developers, code, long-form, backend, dataverse, power-platform

Plans compliance audits against SOC 2, GDPR, HIPAA, PCI-DSS or ISO 27001, with control mapping, gap analysis, remediation roadmap and monitoring.
system-prompt, audit, compliance, gap-analysis, expert-advice, risk-management, data-privacy, gdpr, cybersecurity, for-security-professionals, for-consultants, xml-tags, structured-output, roadmap, report, guardrails, security-review, policy-document, advanced, soc-2

Peeling Object With a Hidden Inner World
Draws a single object frozen mid-peel in space, its curling skin revealing a detailed inner world, with slots for the object and what lives inside.
image-prompt, nano-banana, placeholders, 3d-render, surreal, still-life, macro, exploded-view, dramatic-lighting, soft-lighting, muted-colors, creativity, illustration, whimsical, concept-art, poster, negative-space
Loading reviews…
Loading comments…