Skip to main content


A function with a name, which might take Parameters and return a value of a certain type.


Name@idTypeDescriptionInherited from
typeschema:type'Function'The name of the type.Entity
idschema:idstringThe identifier for this item.Entity
metastencila:metaobjectMetadata associated with this item.Entity
nameschema:namestringThe name of the function. See note 1.Function
parametersstencila:parametersArray of ParameterThe parameters of the function.Function
returnsstencila:returnsValidatorTypesThe return type of the function.Function


  • Parent: Entity
  • Descendants: None


  1. name : The name property is not required; this allows for anonymous functions (although these are not yet implemented in Stencila interpreters). The regex allows for snake_case and camelCase names but excludes PascalCase for parameter names.
  2. Available as JSON-LD.
  3. Available as JSON Schema.
  4. This documentation was generated from Function.schema.yaml.