package schema

import "github.com/docker/cli/cli/compose/schema"

Index

Functions

func Validate

func Validate(config map[string]any, version string) error

Validate uses the jsonschema to validate the configuration

func Version

func Version(config map[string]any) string

Version returns the version of the config, defaulting to the latest "3.x" version (3.13). If only the major version "3" is specified, it is used as version "3.x" and returns the default version (latest 3.x).

Source Files

schema.go

Directories

PathSynopsis
cli/compose/schema/data
Version
v27.0.1+incompatible
Published
Jun 24, 2024
Platform
linux/amd64
Imports
6 packages
Last checked
5 seconds ago

Tools for package owners.