coercer

package
v0.101.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CoerceParams

func CoerceParams(schema *spec.Schema, data map[string]interface{}) error

CoerceParams coerces the types of certain parameters according to typing information from their corresponding JSON schema. This is useful because an input format like form-encoding doesn't support anything but strings, and we'd like to work with a slightly wider variety of types like booleans and integers.

Types

This section is empty.

Jump to

Keyboard shortcuts

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