woche12 > master: code py - schema

This commit is contained in:
RD 2022-06-21 19:01:13 +02:00
parent 4001551c9c
commit 01ef8c5758
1 changed files with 18 additions and 0 deletions

View File

@ -170,9 +170,21 @@ components:
$ref: '#/components/schemas/DataTypeLandscapeGeometry' $ref: '#/components/schemas/DataTypeLandscapeGeometry'
optimise: optimise:
$ref: '#/components/schemas/EnumOptimiseMode' $ref: '#/components/schemas/EnumOptimiseMode'
coords-init:
description: Initial co-ordinates to start the algorithm.
type: array
items:
type: integer
minItems: 1
temperature-init:
type: float
default: 1.
annealing: annealing:
type: boolean type: boolean
default: false default: false
one-based:
type: boolean
default: false
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Algorithm: Genetic Algorithm # Algorithm: Genetic Algorithm
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -243,10 +255,16 @@ components:
type: object type: object
required: required:
- neighbourhoods - neighbourhoods
- labels
- values - values
properties: properties:
neighbourhoods: neighbourhoods:
$ref: '#/components/schemas/DataTypeLandscapeNeighbourhoods' $ref: '#/components/schemas/DataTypeLandscapeNeighbourhoods'
labels:
type: array
items:
type: string
minItems: 1
values: values:
$ref: '#/components/schemas/DataTypeLandscapeValues' $ref: '#/components/schemas/DataTypeLandscapeValues'
DataTypeLandscapeNeighbourhoods: DataTypeLandscapeNeighbourhoods: