Skip to content
Snippets Groups Projects
Commit 70a4f6a0 authored by stevereis's avatar stevereis
Browse files

Add missing fields to algorithms

parent 83fee2e6
No related tags found
No related merge requests found
......@@ -19,8 +19,8 @@ export const transformToAlgorithms = jsonata(`
'label': label,
'type': valueType,
'defaultValue': defaultValue,
'isMultiple': valueMultiple,
'isRequired': valueNotBlank,
'isMultiple': $boolean(valueMultiple),
'isRequired': $boolean(valueNotBlank),
'min': valueMin,
'max': valueMax
})
......
......@@ -5,8 +5,11 @@ export class AlgorithmParameter {
@Field()
name: string;
@Field(() => [String])
value: string[];
@Field(() => [String], { nullable: true })
value?: string[];
@Field({ nullable: true })
label?: string;
@Field({ nullable: true })
description?: string;
......
......@@ -9,9 +9,12 @@ export class Algorithm {
@Field(() => [AlgorithmParameter], { nullable: true, defaultValue: [] })
parameters?: AlgorithmParameter[];
@Field()
type: string;
@Field({ nullable: true })
label?: string;
@Field({ nullable: true })
type?: string;
@Field({ nullable: true })
description: string;
description?: string;
}
......@@ -36,7 +36,8 @@ type Domain {
type AlgorithmParameter {
name: String!
value: [String!]!
value: [String!]
label: String
description: String
defaultValue: String
isMultiple: Boolean
......@@ -49,7 +50,8 @@ type AlgorithmParameter {
type Algorithm {
name: String!
parameters: [AlgorithmParameter!]
type: String!
label: String
type: String
description: String
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment