model

package
v0.0.2-beta.7 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultSeparatorSegment   = "'"
	DefaultSeparatorComponent = "+"
	DefaultSeparatorElement   = ":"
	DefaultEscapeCharacter    = "?"
)
View Source
const (
	EdiTypeSegment   EdiType = "segment"
	EdiTypeElement   EdiType = "element"
	EdiTypeComponent EdiType = "component"

	JsonSchemaTypeArray   JsonSchemaType = "array"
	JsonSchemaTypeObject  JsonSchemaType = "object"
	JsonSchemaTypeNumber  JsonSchemaType = "number"
	JsonSchemaTypeString  JsonSchemaType = "string"
	JsonSchemaTypeBoolean JsonSchemaType = "boolean"
	JsonSchemaTypeInteger JsonSchemaType = "integer"
	JsonSchemaTypeUnknown JsonSchemaType = ""
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EdiType

type EdiType string

type JsonSchemaType

type JsonSchemaType string

type Properties

type Properties map[string]*Property

type Property

type Property struct {
	Description string         `json:"description"`
	Type        JsonSchemaType `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"`
	ID     string `json:"$id"`
	*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