Skip to main content

Number Parameter [object]

An object defining a parameter which accepts a number typed value.

Properties:

constraints

A JSON Schema v4 [object] defining constraints on the parameters value.

default

A number initializer to use as the value of the parameter when no argument is provided.

isSecret

A boolean indicating if the value of the parameter is secret. This will cause it to be hidden in UI's for example.

Example

This op echos a number parameter, defaulting to 9001, when run.

name: example
description: This op echos a number parameter, defaulting to 9001, when run.
inputs:
example-input:
number:
default: 9001
run:
container:
image: { ref: 'alpine' }
cmd: ['echo', $(example-input)]