model

package
v0.0.1-beta.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EdiType

type EdiType string
const (
	EdiTypeSegment   EdiType = "segment"
	EdiTypeElement   EdiType = "element"
	EdiTypeComponent EdiType = "component"
)

type Properties

type Properties map[string]*Property

type Property

type Property struct {
	Description string     `json:"description"`
	Type        string     `json:"type"`
	XEdi        XEdi       `json:"x-edi"`
	Properties  Properties `json:"properties"`
	Items       *Property  `json:"items"`
	IsRequired  bool       `json:"isRequired"`
	Const       any        `json:"const"`
	MinItems    int        `json:"minItems"`
	MaxItems    int        `json:"maxItems"`
}

type Schema

type Schema struct {
	Schema string `json:"$schema"`
	*Property
}

type XEdi

type XEdi struct {
	Type  EdiType `json:"type"`
	Order int     `json:"order"`
	Tag   string  `json:"tag"`
}

Jump to

Keyboard shortcuts

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