SF API Topic and Action Enablement

no-additional-properties

general > no-additional-properties


Guidance / Message

Uri parameters, query parameters, header parameters etc of API operations enabled as agent actions can not have additional properties

Examples

valid

openapi: "3.0.0"
info:
  title: example API
  version: "1.0.0"
  description: "This is the API description"
paths:
  /path:
    get:
      operationId: get-operation
      x-sfdc:
        agent:
          action:
            publishAsAgentAction: true
      parameters:
        - name: param1
          description: a param
          in: path
          schema:
            type: object
            properties:
              something:
                type: string
            additionalProperties: false

      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                something:
                  type: string
              additionalProperties: false

invalid

openapi: "3.0.0"
info:
  title: example API
  version: "1.0.0"
  description: "This is the API description"
paths:
  /path:
    get:
      operationId: get-operation
      x-sfdc:
        agent:
          action:
            publishAsAgentAction: true
      parameters:
        - name: param1
          description: a param
          in: path
          schema:
            type: object
            properties:
              something:
                type: string

      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                something:
                  type: string

Applies to Operation

Constraint

Type: Declarative Validation
TypeRuleset
OrganizationMuleSoft
Published by
MuleSoft Organization
Published onMar 21, 2025
Asset overview

Asset versions for 1.1.x

Asset versions
VersionActions
1.1.1
1.1.0

Tags