Skip to content

Commit

Permalink
fix(Function): Make name optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Nokome Bentley committed Jan 21, 2020
1 parent 97c3b7d commit 9237114
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions schema/Function.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ properties:
type: string
pattern: '[a-z_][A-z0-9_]*'
$comment: |
This regex allows for snake_case and camelCase names but excludes
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.
parameters:
'@id': schema:parameters
description: An array of parameters the function exsists.
description: An array of parameters the function exists.
type: array
items:
- $ref: Parameter
Expand All @@ -25,5 +27,3 @@ properties:
description: The return type of the function.
allOf:
- $ref: ValidatorTypes
required:
- name

0 comments on commit 9237114

Please sign in to comment.