Schema Definitions
Learn the basics about External Service's schema support, schema components that are ignored, and supported data types.
Required Editions
| Available in: Lightning Experience |
| Available in: Enterprise, Performance, Unlimited, and Developer Editions |
When you create your API spec, keep the following in mind.
- You can use the
GET,PATCH,PUT,POST, andDELETEmethods in a schema. AGETmethod with an empty request body results in a validation error. - A property must include a value.
- Each parameter must have a name.
- Request headers are supported.
- Response headers aren’t supported.
- Form parameters are supported.
- Security settings defined in the API spec are ignored and defer to security settings in the Named Credential.
The following OpenAPI schema components are ignored:
- Security requirement objects and security definitions
- Tag objects
- External documentation objects
- For
allOf,oneOf, andanyOf, the schema object propertydiscriminatoris supported. Thediscriminator/mappingin OpenApi 3.0 is ignored. Thediscriminatorproperty determines the schema referenced by its type name. For more information, see the Swagger OpenAPI 3.0 specification Inheritance and Polymorphism.
Supported data types:
- binary
- boolean
- date
- datetime
- double
- enum
- float
- integer
- long
- string
- any type (as Apex Object)
- object: top level named and nested anonymous objects
- anonymous and top-level named lists (can nest both named and anonymous arrays)
Note Nested anonymous arrays generate aList<List<T>>Apex type, which isn't supported as a field on an Apex-defined variable in Flow. For more information, see Flow Considerations for Apex Data Types. - additionalProperties as maps
- allOf as an object composition
- OpenAPI 3.0 only:
- anyOf (any of primitive, list, or object schema types; only object schemas can constitute composition types)
- oneOf (one of primitive, list, or object schema types)
See Also
Did this article solve your issue?
Let us know so we can improve!

