SF API Topic and Action Enablement

only-specific-types-response

general > only-specific-types-response


Guidance / Message

Only String, Number, Integer, Boolean, String with date and Object types are allowed in responses

Examples

valid

get:
  x-sfdc:
    agent:
      action:
        publishAsAgentAction: true
  responses:
    "200":
      description: operation description
      content:
        application/json:
          schema:
            type: object
            properties:
              something:
                type: string
              numberSomething:
                type: number
              booleanSomething:
                type: boolean

invalid

get:
  x-sfdc:
    agent:
      action:
        publishAsAgentAction: true

  responses:
    "200":
      description: operation description
      content:
        application/json:
          schema:
            type: object
            properties:
              something:
                type: array
                items:
                  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