package post

import "github.com/go-openapi/validate/post"

Index

Functions

func ApplyDefaults

func ApplyDefaults(r *validate.Result)

ApplyDefaults applies defaults to the underlying data of the result. The data must be a JSON struct as returned by json.Unmarshal.

func Prune

func Prune(r *validate.Result)

Prune recursively removes all non-specified fields from the underlying data of the result. The data must be a JSON struct as returned by json.Unmarshal.

Source Files

defaulter.go prune.go

Version
v0.24.0 (latest)
Published
Mar 9, 2024
Platform
js/wasm
Imports
1 packages
Last checked
2 hours ago

Tools for package owners.