...

Package post

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

Overview ▾

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.