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.12). 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
v26.1.1+incompatible
Published
Apr 30, 2024
Platform
darwin/amd64
Imports
6 packages
Last checked
16 seconds ago

Tools for package owners.