master > master: code py - schemata überarbeitet

This commit is contained in:
RD 2022-06-11 16:07:23 +02:00
parent 38b477e0ad
commit 4fa02a4962
2 changed files with 23 additions and 8 deletions

View File

@ -2,7 +2,8 @@ openapi: 3.0.3
info:
version: 0.1.0
title: Schemata for command instructions
servers: []
servers:
- url: "."
paths: {}
components:
schemas:
@ -22,9 +23,10 @@ components:
Command:
description: |-
Instructions for command to call
type: object
required:
- name
properties: &ref_command_properties
properties:
name:
$ref: '#/components/schemas/EnumAlgorithmNames'
additionalProperties: true
@ -40,16 +42,26 @@ components:
- nodes
- edges
properties:
<<: *ref_command_properties
name:
$ref: '#/components/schemas/EnumAlgorithmNames'
nodes:
type: array
items:
anyOf:
- type: integer
- type: number
- type: string
edges:
type: array
items:
# $ref: '#/components/schemas/Edge'
type: array
minItems: 2
maxItems: 2
items:
anyOf:
- type: integer
- type: number
- type: string
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Command - Algorithm: TSP
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -62,7 +74,8 @@ components:
- optimise
- dist
properties:
<<: *ref_command_properties
name:
$ref: '#/components/schemas/EnumAlgorithmNames'
dist:
type: array
items:
@ -83,7 +96,8 @@ components:
- word1
- word2
properties:
<<: *ref_command_properties
name:
$ref: '#/components/schemas/EnumAlgorithmNames'
word1:
description: Word that gets placed vertically in algorithm.
type: string

View File

@ -2,7 +2,8 @@ openapi: 3.0.3
info:
version: 0.1.0
title: Schemata for config models
servers: []
servers:
- url: "."
paths: {}
components:
schemas:
@ -10,7 +11,7 @@ components:
# Config
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Config:
descripton: |-
description: |-
Data model for all parts of the configuration.
type: object
required: