Skip to content

Commit

Permalink
added an initial schema (#196)
Browse files Browse the repository at this point in the history
* added an initial schema

* changed additional properties

* allow top-level optional elements like transformation
  • Loading branch information
marc-hanheide authored Feb 4, 2025
1 parent e4389ef commit 3341501
Showing 1 changed file with 72 additions and 0 deletions.
72 changes: 72 additions & 0 deletions topological_navigation/config/tmap-schema.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
$schema: http://json-schema.org/draft-07/schema#
title: Topological Map Schema
type: object
required:
- meta
- metric_map
- name
- nodes
- pointset
additionalProperties: true
properties:
meta:
type: object
properties:
last_updated:
type: string
pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}_[0-9]{2}-[0-9]{2}-[0-9]{2}$
required:
- last_updated
additionalProperties: true
metric_map:
type: string
name:
type: string
nodes:
type: array
items:
type: object
required:
- meta
- node
properties:
meta:
type: object
required:
- map
- node
- pointset
properties:
map:
type: string
node:
type: string
pointset:
type: string
node:
type: object
required:
- edges
- name
- parent_frame
additionalProperties: true
properties:
edges:
type: array
items:
type: object
additionalProperties: true
required:
- edge_id
- node
properties:
edge_id:
type: string
node:
type: string
name:
type: string
parent_frame:
type: string
pointset:
type: string

0 comments on commit 3341501

Please sign in to comment.