Skip to main content

Code Expression

An expression defined in programming language source code.

This schema type is marked as unstable ⚠️ and is subject to change.


Name@idTypeDescriptionInherited from
textschema:textstringThe text of the code.Code
errorsstencila:errorsArray of CodeErrorErrors when compiling or executing the chunk.CodeExpression
formatschema:encodingFormatstringMedia type, typically expressed using a MIME format, of the code. See note 1.Code
idschema:idstringThe identifier for this item.Entity
metastencila:metaobjectMetadata associated with this item.Entity
outputstencila:outputNodeThe value of the expression when it was last evaluated.CodeExpression
programmingLanguageschema:programmingLanguagestringThe programming language of the code.Code


  1. format : !array('This property allows the differentiation of formats using the same programming language or variants of a programming language. An example is using ')programmingLanguage!array(' "json" and ')encodingFormat!array(' "application/ld+json" for JSON-LD code examples.')


Available as#


This documentation was generated from CodeExpression.schema.yaml.