draft

package
v2.0.0-...-bff7708 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Draft

type Draft struct {
	Models map[string]ModelOptions `yaml:"Models"`
}

Draft represents draft file which is used to generate rest APIs

type ModelOptions

type ModelOptions struct {
	Properties    map[string]string    `yaml:"Properties"`
	Validation    map[string][]string  `yaml:"Validation"`
	Actions       []string             `yaml:"Actions"`
	Relationships parser.Relationships `yaml:"Relationships"`
	OnlyModel     bool                 `yaml:"OnlyModel"`
	Public        bool                 `yaml:"Public"`
}

ModelOptions represents single model option

Jump to

Keyboard shortcuts

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