Better represent 'exclusiveMinimum' from JSON schemata

This commit is contained in:
Christoph Kluge
2022-09-21 14:21:13 +02:00
parent 94c77d8a67
commit 6712b15034
4 changed files with 73 additions and 67 deletions

View File

@@ -403,9 +403,9 @@
"example": "fritz"
},
"duration": {
"description": "Duration of job in seconds",
"description": "Duration of job in seconds (Min \u003e 0)",
"type": "integer",
"minimum": 0,
"minimum": 1,
"example": 43200
},
"exclusive": {
@@ -452,21 +452,21 @@
"example": 1
},
"numAcc": {
"description": "Number of accelerators used",
"description": "Number of accelerators used (Min \u003e 0)",
"type": "integer",
"minimum": 0,
"minimum": 1,
"example": 2
},
"numHwthreads": {
"description": "Number of HWThreads used",
"description": "Number of HWThreads used (Min \u003e 0)",
"type": "integer",
"minimum": 0,
"minimum": 1,
"example": 20
},
"numNodes": {
"description": "Number of nodes used",
"description": "Number of nodes used (Min \u003e 0)",
"type": "integer",
"minimum": 0,
"minimum": 1,
"example": 2
},
"partition": {
@@ -513,8 +513,9 @@
"example": "abcd100h"
},
"walltime": {
"description": "Requested walltime of job in seconds",
"description": "Requested walltime of job in seconds (Min \u003e 0)",
"type": "integer",
"minimum": 1,
"example": 86400
}
}
@@ -534,9 +535,9 @@
"example": "fritz"
},
"duration": {
"description": "Duration of job in seconds",
"description": "Duration of job in seconds (Min \u003e 0)",
"type": "integer",
"minimum": 0,
"minimum": 1,
"example": 43200
},
"exclusive": {
@@ -583,21 +584,21 @@
"example": 1
},
"numAcc": {
"description": "Number of accelerators used",
"description": "Number of accelerators used (Min \u003e 0)",
"type": "integer",
"minimum": 0,
"minimum": 1,
"example": 2
},
"numHwthreads": {
"description": "Number of HWThreads used",
"description": "Number of HWThreads used (Min \u003e 0)",
"type": "integer",
"minimum": 0,
"minimum": 1,
"example": 20
},
"numNodes": {
"description": "Number of nodes used",
"description": "Number of nodes used (Min \u003e 0)",
"type": "integer",
"minimum": 0,
"minimum": 1,
"example": 2
},
"partition": {
@@ -623,9 +624,9 @@
"example": 4
},
"startTime": {
"description": "Start epoch time stamp in seconds",
"description": "Start epoch time stamp in seconds (Min \u003e 0)",
"type": "integer",
"minimum": 0,
"minimum": 1,
"example": 1649723812
},
"statistics": {
@@ -653,8 +654,9 @@
"example": "abcd100h"
},
"walltime": {
"description": "Requested walltime of job in seconds",
"description": "Requested walltime of job in seconds (Min \u003e 0)",
"type": "integer",
"minimum": 1,
"example": 86400
}
}

View File

@@ -75,9 +75,9 @@ definitions:
example: fritz
type: string
duration:
description: Duration of job in seconds
description: Duration of job in seconds (Min > 0)
example: 43200
minimum: 0
minimum: 1
type: integer
exclusive:
description: 'Specifies how nodes are shared: 0 - Shared among multiple jobs
@@ -118,19 +118,19 @@ definitions:
minimum: 0
type: integer
numAcc:
description: Number of accelerators used
description: Number of accelerators used (Min > 0)
example: 2
minimum: 0
minimum: 1
type: integer
numHwthreads:
description: Number of HWThreads used
description: Number of HWThreads used (Min > 0)
example: 20
minimum: 0
minimum: 1
type: integer
numNodes:
description: Number of nodes used
description: Number of nodes used (Min > 0)
example: 2
minimum: 0
minimum: 1
type: integer
partition:
description: The Slurm partition to which the job was submitted
@@ -166,8 +166,9 @@ definitions:
example: abcd100h
type: string
walltime:
description: Requested walltime of job in seconds
description: Requested walltime of job in seconds (Min > 0)
example: 86400
minimum: 1
type: integer
type: object
schema.JobMeta:
@@ -182,9 +183,9 @@ definitions:
example: fritz
type: string
duration:
description: Duration of job in seconds
description: Duration of job in seconds (Min > 0)
example: 43200
minimum: 0
minimum: 1
type: integer
exclusive:
description: 'Specifies how nodes are shared: 0 - Shared among multiple jobs
@@ -225,19 +226,19 @@ definitions:
minimum: 0
type: integer
numAcc:
description: Number of accelerators used
description: Number of accelerators used (Min > 0)
example: 2
minimum: 0
minimum: 1
type: integer
numHwthreads:
description: Number of HWThreads used
description: Number of HWThreads used (Min > 0)
example: 20
minimum: 0
minimum: 1
type: integer
numNodes:
description: Number of nodes used
description: Number of nodes used (Min > 0)
example: 2
minimum: 0
minimum: 1
type: integer
partition:
description: The Slurm partition to which the job was submitted
@@ -257,9 +258,9 @@ definitions:
example: 4
type: integer
startTime:
description: Start epoch time stamp in seconds
description: Start epoch time stamp in seconds (Min > 0)
example: 1649723812
minimum: 0
minimum: 1
type: integer
statistics:
additionalProperties:
@@ -280,8 +281,9 @@ definitions:
example: abcd100h
type: string
walltime:
description: Requested walltime of job in seconds
description: Requested walltime of job in seconds (Min > 0)
example: 86400
minimum: 1
type: integer
type: object
schema.JobStatistics: