generated from coulomb/repo-seed
45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
$schema: "https://json-schema.org/draft/2020-12/schema"
|
|
$id: "https://railiance.local/fabric/schemas/service.schema.yaml"
|
|
title: "ServiceDeclaration"
|
|
type: object
|
|
additionalProperties: false
|
|
required:
|
|
- apiVersion
|
|
- kind
|
|
- metadata
|
|
- spec
|
|
properties:
|
|
apiVersion:
|
|
$ref: "./common.schema.yaml#/$defs/apiVersion"
|
|
kind:
|
|
type: string
|
|
const: ServiceDeclaration
|
|
metadata:
|
|
$ref: "./common.schema.yaml#/$defs/metadata"
|
|
spec:
|
|
type: object
|
|
additionalProperties: false
|
|
required:
|
|
- lifecycle
|
|
- environments
|
|
- description
|
|
properties:
|
|
lifecycle:
|
|
$ref: "./common.schema.yaml#/$defs/lifecycle"
|
|
environments:
|
|
$ref: "./common.schema.yaml#/$defs/environments"
|
|
description:
|
|
type: string
|
|
minLength: 1
|
|
service_type:
|
|
type: string
|
|
minLength: 1
|
|
provides_capabilities:
|
|
type: array
|
|
items:
|
|
$ref: "./common.schema.yaml#/$defs/graphId"
|
|
exposes_interfaces:
|
|
type: array
|
|
items:
|
|
$ref: "./common.schema.yaml#/$defs/graphId"
|