schemas

package
v0.0.0-...-725b82a Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var JSONPlaceholderTodoParser = jsonparser.JSONParser{
	ConvertFunction:   JSONPlaceholderConvertFunction,
	ValidatorFunction: JSONPlaceholderValidatorFunction,
	JSONSchema:        &JSONPlaceholderTodoSchema{},
	Output:            &JSONPlaceholderTodo{},
	Name:              "JSONPlaceholderTodoParser",
}

Functions

func JSONPlaceholderConvertFunction

func JSONPlaceholderConvertFunction(input any, url string) any

func JSONPlaceholderValidatorFunction

func JSONPlaceholderValidatorFunction(input any) error

Types

type JSONPlaceholderTodo

type JSONPlaceholderTodo struct {
	UserId    int
	Id        int
	Title     string
	Completed bool
}

type JSONPlaceholderTodoSchema

type JSONPlaceholderTodoSchema struct {
	UserId    int    `json:"userId"`
	Id        int    `json:"id"`
	Title     string `json:"title"`
	Completed bool   `json:"completed"`
}

Jump to

Keyboard shortcuts

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