diff --git a/README.md b/README.md index aa9c001..4b42879 100644 --- a/README.md +++ b/README.md @@ -206,6 +206,14 @@ A collection of fields, expressed as an array of objects in JSON Siren such as ` Fields represent controls inside of actions. They may contain these attributes: +####max + +A string or number describing the maximum value among the allowed range of values. This property can only apply to a field with a linear or periodic domain. Optional. + +####min + +A string or number describing the minimum value arong the allowed range of values. This property can only apply to a field with a linear or periodic domain. Optional. + ####name A name describing the control. Field names MUST be unique within the set of fields for an action. The behaviour of clients when parsing a Siren document that violates this constraint is undefined. Required. diff --git a/siren.schema.json b/siren.schema.json index 509a82b..4af6658 100644 --- a/siren.schema.json +++ b/siren.schema.json @@ -157,6 +157,14 @@ "name" ], "properties": { + "max": { + "description": "A string or number describing the maximum value among the allowed ranges of values for this field. This property can only apply to a field with a linear or periodic domain.", + "type": [ "string", "number" ] + }, + "min": { + "description": "A string or number describing the minimum value among the allowed ranges of values for this field. This property can only apply to a field with a linear or periodic domain.", + "type": [ "string", "number" ] + }, "name": { "description": "A name describing the control. Field names MUST be unique within the set of fields for an action. The behaviour of clients when parsing a Siren document that violates this constraint is undefined.", "type": "string"