schema

CodeExpression

An expression defined in programming language source code.

Properties

Name @id Type Description Inherited from
text schema:text string The text of the code. Code
errors stencila:errors Array of CodeError Errors when compiling or executing the chunk. CodeExpression
format schema:encodingFormat string Media type, typically expressed using a MIME format, of the code. See note 1. Code
id schema:id string The identifier for this item. Entity
meta stencila:meta object Metadata associated with this item. Entity
output stencila:output Node The value of the expression when it was last evaluated. CodeExpression
programmingLanguage schema:programmingLanguage string The programming language of the code. Code

Notes

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

Available as

Source

This documentation was generated from CodeExpression.schema.yaml.