schema2code

package module
v0.0.0-...-b9d476e Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: MIT Imports: 8 Imported by: 2

README

schema2code

Generate code from json-schema.

Supported output languages

Golang

Output code to the specified package. Validatiing data using custom UnmarshalJSON.

Typescript

Validatiing data using export function $check.

use with schema2code

  • go-dogma A library & tool for generating web interface definition code from documentation.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(reader io.Reader, writer io.Writer, config interface{}) error

Types

type CommonConfig

type CommonConfig = common.CommonConfig

type GolangConfig

type GolangConfig = golang.Config

type TypeDesc

type TypeDesc = common.TypeDesc

type TypescriptConfig

type TypescriptConfig = typescript.TypescriptConfig

Directories

Path Synopsis
Package schemas defines JSON schema types.
Package schemas defines JSON schema types.

Jump to

Keyboard shortcuts

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