diff --git a/pkg/fftypes/ffi_param_validator.go b/pkg/fftypes/ffi_param_validator.go index 487e294..fe260cf 100644 --- a/pkg/fftypes/ffi_param_validator.go +++ b/pkg/fftypes/ffi_param_validator.go @@ -42,6 +42,30 @@ func (v *BaseFFIParamValidator) GetMetaSchema() *jsonschema.Schema { } } }, + "numberTypeOptions": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "number", + "string" + ] + } + } + }, + "booleanTypeOptions": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "boolean", + "string" + ] + } + } + }, "ffiParam": { "oneOf": [ { @@ -68,9 +92,23 @@ func (v *BaseFFIParamValidator) GetMetaSchema() *jsonschema.Schema { "properties": { "oneOf": { "type": "array", - "items": { - "$ref": "#/$defs/integerTypeOptions" - } + "oneOf": [ + { + "items": { + "$ref": "#/$defs/integerTypeOptions" + } + }, + { + "items": { + "$ref": "#/$defs/numberTypeOptions" + } + }, + { + "items": { + "$ref": "#/$defs/booleanTypeOptions" + } + } + ] } }, "required": [