Skip to content

SUSE/bosh-deployment-schema

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

bosh-deployment-schema

BOSH Deployment Manifest OAS v3 Spec

The OpenAPI v3.0 spec (OAS) describes the BOSH deployment manifests.

It can be used for validation, as well as documentation and code generation.

Example Validation CLI

 go build
 ./bosh-deployment-schema openapi.yml manifest.yml

Issues

  • Some fields allow multiple types, like an integer or a range. The spec lists those fields as string. Thus using an integer in a deployment manifest will result in an validation error. YAML unmarshals unquoted numbers to integers. Example: using instances: "1" instead of instances: 1 passes validation.
  • For compatibility reasons some fields are allowed or might be missing. Example: instance_groups: { azs: [] }.
  • create-env manifests, might not validate because of IaaS dependent sections, like disk_pools.
  • OpenAPI v3.0 uses JSON schema. JSON schema does not allow any sibling nodes next to a $ref. The spec uses allOf to work around this limitation and add descriptions directly to the node. This might not work with all tooling.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages