defaults

package
v0.1.97 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package defaults generates a module's render values from its openapi schemas: it fills every property, honors `not: {required: [...]}` mutual exclusion, and picks the fullest x-examples entry. It is dmt's own value generator (the packages plugin has an equivalent under values/schema/defaults).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(root *spec.Schema) (map[string]any, error)

Generate produces a values map from an openapi schema: it fills every property, honoring `not` exclusions and x-examples along the way.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL