schema

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BorderEdge added in v0.1.2

type BorderEdge struct {
	// Color corresponds to the JSON schema field "color".
	Color *string `json:"color,omitempty,omitzero" yaml:"color,omitempty" mapstructure:"color,omitempty"`

	// Style corresponds to the JSON schema field "style".
	Style *BorderLineStyle `json:"style,omitempty,omitzero" yaml:"style,omitempty" mapstructure:"style,omitempty"`

	AdditionalProperties interface{} `mapstructure:",remain"`
}

type BorderLineStyle added in v0.1.2

type BorderLineStyle string
const BorderLineStyleDashed BorderLineStyle = "dashed"
const BorderLineStyleDotted BorderLineStyle = "dotted"
const BorderLineStyleDouble BorderLineStyle = "double"
const BorderLineStyleMedium BorderLineStyle = "medium"
const BorderLineStyleNone BorderLineStyle = "none"
const BorderLineStyleThick BorderLineStyle = "thick"
const BorderLineStyleThin BorderLineStyle = "thin"

func (*BorderLineStyle) UnmarshalJSON added in v0.1.2

func (j *BorderLineStyle) UnmarshalJSON(value []byte) error

UnmarshalJSON implements json.Unmarshaler.

type CSVXFormulaCell

type CSVXFormulaCell struct {
	// Cached corresponds to the JSON schema field "cached".
	Cached *Value `json:"cached,omitempty,omitzero" yaml:"cached,omitempty" mapstructure:"cached,omitempty"`

	// Formula corresponds to the JSON schema field "formula".
	Formula string `json:"formula" yaml:"formula" mapstructure:"formula"`

	AdditionalProperties interface{} `mapstructure:",remain"`
}

func (*CSVXFormulaCell) UnmarshalJSON

func (j *CSVXFormulaCell) UnmarshalJSON(value []byte) error

UnmarshalJSON implements json.Unmarshaler.

type CSVXManifest

type CSVXManifest struct {
	// Files corresponds to the JSON schema field "files".
	Files []string `json:"files" yaml:"files" mapstructure:"files"`

	// Format corresponds to the JSON schema field "format".
	Format interface{} `json:"format" yaml:"format" mapstructure:"format"`

	// Version corresponds to the JSON schema field "version".
	Version interface{} `json:"version" yaml:"version" mapstructure:"version"`

	// Workbook corresponds to the JSON schema field "workbook".
	Workbook string `json:"workbook" yaml:"workbook" mapstructure:"workbook"`

	AdditionalProperties interface{} `mapstructure:",remain"`
}

func (*CSVXManifest) UnmarshalJSON

func (j *CSVXManifest) UnmarshalJSON(value []byte) error

UnmarshalJSON implements json.Unmarshaler.

type CSVXSheetMetadata

type CSVXSheetMetadata struct {
	// Cells corresponds to the JSON schema field "cells".
	Cells CSVXSheetMetadataCells `json:"cells,omitempty,omitzero" yaml:"cells,omitempty" mapstructure:"cells,omitempty"`

	// Columns corresponds to the JSON schema field "columns".
	Columns []Column `json:"columns,omitempty,omitzero" yaml:"columns,omitempty" mapstructure:"columns,omitempty"`

	// Id corresponds to the JSON schema field "id".
	Id *Id `json:"id,omitempty,omitzero" yaml:"id,omitempty" mapstructure:"id,omitempty"`

	// Name corresponds to the JSON schema field "name".
	Name *string `json:"name,omitempty,omitzero" yaml:"name,omitempty" mapstructure:"name,omitempty"`

	// Print corresponds to the JSON schema field "print".
	Print *Print `json:"print,omitempty,omitzero" yaml:"print,omitempty" mapstructure:"print,omitempty"`

	// Row height by 1-based row number, in points (XLSX's own unit; its default row
	// height is 15pt) — see spec/03-sheets.md.
	RowHeights CSVXSheetMetadataRowHeights `json:"rowHeights,omitempty,omitzero" yaml:"rowHeights,omitempty" mapstructure:"rowHeights,omitempty"`

	AdditionalProperties interface{} `mapstructure:",remain"`
}

func (*CSVXSheetMetadata) UnmarshalJSON

func (j *CSVXSheetMetadata) UnmarshalJSON(value []byte) error

UnmarshalJSON implements json.Unmarshaler.

type CSVXSheetMetadataCells

type CSVXSheetMetadataCells map[string]Cell

type CSVXSheetMetadataRowHeights

type CSVXSheetMetadataRowHeights map[string]float64

Row height by 1-based row number, in points (XLSX's own unit; its default row height is 15pt) — see spec/03-sheets.md.

type CSVXStyles

type CSVXStyles struct {
	// Styles corresponds to the JSON schema field "styles".
	Styles []CSVXStylesStylesElem `json:"styles" yaml:"styles" mapstructure:"styles"`

	AdditionalProperties interface{} `mapstructure:",remain"`
}

func (*CSVXStyles) UnmarshalJSON

func (j *CSVXStyles) UnmarshalJSON(value []byte) error

UnmarshalJSON implements json.Unmarshaler.

type CSVXStylesStylesElem

type CSVXStylesStylesElem struct {
	// Alignment corresponds to the JSON schema field "alignment".
	Alignment CSVXStylesStylesElemAlignment `json:"alignment,omitempty,omitzero" yaml:"alignment,omitempty" mapstructure:"alignment,omitempty"`

	// Border corresponds to the JSON schema field "border".
	Border *CSVXStylesStylesElemBorder `json:"border,omitempty,omitzero" yaml:"border,omitempty" mapstructure:"border,omitempty"`

	// Fill corresponds to the JSON schema field "fill".
	Fill CSVXStylesStylesElemFill `json:"fill,omitempty,omitzero" yaml:"fill,omitempty" mapstructure:"fill,omitempty"`

	// Font corresponds to the JSON schema field "font".
	Font *CSVXStylesStylesElemFont `json:"font,omitempty,omitzero" yaml:"font,omitempty" mapstructure:"font,omitempty"`

	// Id corresponds to the JSON schema field "id".
	Id string `json:"id" yaml:"id" mapstructure:"id"`

	// NumberFormat corresponds to the JSON schema field "numberFormat".
	NumberFormat *string `json:"numberFormat,omitempty,omitzero" yaml:"numberFormat,omitempty" mapstructure:"numberFormat,omitempty"`

	// Protection corresponds to the JSON schema field "protection".
	Protection CSVXStylesStylesElemProtection `json:"protection,omitempty,omitzero" yaml:"protection,omitempty" mapstructure:"protection,omitempty"`

	AdditionalProperties interface{} `mapstructure:",remain"`
}

func (*CSVXStylesStylesElem) UnmarshalJSON

func (j *CSVXStylesStylesElem) UnmarshalJSON(value []byte) error

UnmarshalJSON implements json.Unmarshaler.

type CSVXStylesStylesElemAlignment

type CSVXStylesStylesElemAlignment map[string]interface{}

type CSVXStylesStylesElemBorder

type CSVXStylesStylesElemBorder struct {
	// Bottom corresponds to the JSON schema field "bottom".
	Bottom *BorderEdge `json:"bottom,omitempty,omitzero" yaml:"bottom,omitempty" mapstructure:"bottom,omitempty"`

	// Color corresponds to the JSON schema field "color".
	Color *string `json:"color,omitempty,omitzero" yaml:"color,omitempty" mapstructure:"color,omitempty"`

	// Left corresponds to the JSON schema field "left".
	Left *BorderEdge `json:"left,omitempty,omitzero" yaml:"left,omitempty" mapstructure:"left,omitempty"`

	// Right corresponds to the JSON schema field "right".
	Right *BorderEdge `json:"right,omitempty,omitzero" yaml:"right,omitempty" mapstructure:"right,omitempty"`

	// Style corresponds to the JSON schema field "style".
	Style *BorderLineStyle `json:"style,omitempty,omitzero" yaml:"style,omitempty" mapstructure:"style,omitempty"`

	// Top corresponds to the JSON schema field "top".
	Top *BorderEdge `json:"top,omitempty,omitzero" yaml:"top,omitempty" mapstructure:"top,omitempty"`

	AdditionalProperties interface{} `mapstructure:",remain"`
}

type CSVXStylesStylesElemFill

type CSVXStylesStylesElemFill map[string]interface{}

type CSVXStylesStylesElemFont

type CSVXStylesStylesElemFont struct {
	// Bold corresponds to the JSON schema field "bold".
	Bold *bool `json:"bold,omitempty,omitzero" yaml:"bold,omitempty" mapstructure:"bold,omitempty"`

	// Color corresponds to the JSON schema field "color".
	Color *string `json:"color,omitempty,omitzero" yaml:"color,omitempty" mapstructure:"color,omitempty"`

	// Italic corresponds to the JSON schema field "italic".
	Italic *bool `json:"italic,omitempty,omitzero" yaml:"italic,omitempty" mapstructure:"italic,omitempty"`

	// Name corresponds to the JSON schema field "name".
	Name *string `json:"name,omitempty,omitzero" yaml:"name,omitempty" mapstructure:"name,omitempty"`

	// Font size in points (spec/08-styles.md); default 11.
	Size *float64 `json:"size,omitempty,omitzero" yaml:"size,omitempty" mapstructure:"size,omitempty"`

	// Underline corresponds to the JSON schema field "underline".
	Underline *bool `json:"underline,omitempty,omitzero" yaml:"underline,omitempty" mapstructure:"underline,omitempty"`

	AdditionalProperties interface{} `mapstructure:",remain"`
}

func (*CSVXStylesStylesElemFont) UnmarshalJSON added in v0.1.15

func (j *CSVXStylesStylesElemFont) UnmarshalJSON(value []byte) error

UnmarshalJSON implements json.Unmarshaler.

type CSVXStylesStylesElemProtection

type CSVXStylesStylesElemProtection map[string]interface{}

type CSVXWorkbook

type CSVXWorkbook struct {
	// Calculation corresponds to the JSON schema field "calculation".
	Calculation *CSVXWorkbookCalculation `json:"calculation,omitempty,omitzero" yaml:"calculation,omitempty" mapstructure:"calculation,omitempty"`

	// Id corresponds to the JSON schema field "id".
	Id Id `json:"id" yaml:"id" mapstructure:"id"`

	// Workbook-scoped names — spec/02-workbook.md (Named ranges).
	NamedRanges []CSVXWorkbookNamedRangesElem `json:"namedRanges,omitempty,omitzero" yaml:"namedRanges,omitempty" mapstructure:"namedRanges,omitempty"`

	// Sheets corresponds to the JSON schema field "sheets".
	Sheets []CSVXWorkbookSheetsElem `json:"sheets" yaml:"sheets" mapstructure:"sheets"`

	// Provenance of an imported workbook (spec/14-xlsx-interoperability.md, 14.1);
	// also written to source/source.json.
	Source *CSVXWorkbookSource `json:"source,omitempty,omitzero" yaml:"source,omitempty" mapstructure:"source,omitempty"`

	// Version corresponds to the JSON schema field "version".
	Version interface{} `json:"version" yaml:"version" mapstructure:"version"`

	AdditionalProperties interface{} `mapstructure:",remain"`
}

func (*CSVXWorkbook) UnmarshalJSON

func (j *CSVXWorkbook) UnmarshalJSON(value []byte) error

UnmarshalJSON implements json.Unmarshaler.

type CSVXWorkbookCalculation

type CSVXWorkbookCalculation struct {
	// Iteration corresponds to the JSON schema field "iteration".
	Iteration *bool `json:"iteration,omitempty,omitzero" yaml:"iteration,omitempty" mapstructure:"iteration,omitempty"`

	// Mode corresponds to the JSON schema field "mode".
	Mode *CSVXWorkbookCalculationMode `json:"mode,omitempty,omitzero" yaml:"mode,omitempty" mapstructure:"mode,omitempty"`

	AdditionalProperties interface{} `mapstructure:",remain"`
}

type CSVXWorkbookCalculationMode

type CSVXWorkbookCalculationMode string
const CSVXWorkbookCalculationModeAutomatic CSVXWorkbookCalculationMode = "automatic"
const CSVXWorkbookCalculationModeManual CSVXWorkbookCalculationMode = "manual"
const CSVXWorkbookCalculationModeOnLoad CSVXWorkbookCalculationMode = "on-load"

func (*CSVXWorkbookCalculationMode) UnmarshalJSON

func (j *CSVXWorkbookCalculationMode) UnmarshalJSON(value []byte) error

UnmarshalJSON implements json.Unmarshaler.

type CSVXWorkbookNamedRangesElem added in v0.1.12

type CSVXWorkbookNamedRangesElem struct {
	// Must also not look like a cell reference, be TRUE or FALSE, or be a Core
	// function name, and must be unique ignoring case (spec/02-workbook.md).
	Name string `json:"name" yaml:"name" mapstructure:"name"`

	// A formula expression with sheet-qualified references (spec/02-workbook.md).
	RefersTo string `json:"refersTo" yaml:"refersTo" mapstructure:"refersTo"`

	AdditionalProperties interface{} `mapstructure:",remain"`
}

func (*CSVXWorkbookNamedRangesElem) UnmarshalJSON added in v0.1.12

func (j *CSVXWorkbookNamedRangesElem) UnmarshalJSON(value []byte) error

UnmarshalJSON implements json.Unmarshaler.

type CSVXWorkbookSheetsElem

type CSVXWorkbookSheetsElem struct {
	// Id corresponds to the JSON schema field "id".
	Id Id `json:"id" yaml:"id" mapstructure:"id"`

	// Metadata corresponds to the JSON schema field "metadata".
	Metadata *string `json:"metadata,omitempty,omitzero" yaml:"metadata,omitempty" mapstructure:"metadata,omitempty"`

	// Name corresponds to the JSON schema field "name".
	Name string `json:"name" yaml:"name" mapstructure:"name"`

	// Path corresponds to the JSON schema field "path".
	Path string `json:"path" yaml:"path" mapstructure:"path"`

	AdditionalProperties interface{} `mapstructure:",remain"`
}

func (*CSVXWorkbookSheetsElem) UnmarshalJSON

func (j *CSVXWorkbookSheetsElem) UnmarshalJSON(value []byte) error

UnmarshalJSON implements json.Unmarshaler.

type CSVXWorkbookSource added in v0.1.13

type CSVXWorkbookSource struct {
	// Authority corresponds to the JSON schema field "authority".
	Authority CSVXWorkbookSourceAuthority `json:"authority" yaml:"authority" mapstructure:"authority"`

	// Features corresponds to the JSON schema field "features".
	Features CSVXWorkbookSourceFeatures `json:"features,omitempty,omitzero" yaml:"features,omitempty" mapstructure:"features,omitempty"`

	// Filename corresponds to the JSON schema field "filename".
	Filename string `json:"filename" yaml:"filename" mapstructure:"filename"`

	// Format corresponds to the JSON schema field "format".
	Format CSVXWorkbookSourceFormat `json:"format" yaml:"format" mapstructure:"format"`

	// ImportedAt corresponds to the JSON schema field "importedAt".
	ImportedAt string `json:"importedAt" yaml:"importedAt" mapstructure:"importedAt"`

	// Importer corresponds to the JSON schema field "importer".
	Importer string `json:"importer" yaml:"importer" mapstructure:"importer"`

	// Mappings corresponds to the JSON schema field "mappings".
	Mappings interface{} `json:"mappings,omitempty,omitzero" yaml:"mappings,omitempty" mapstructure:"mappings,omitempty"`

	// Sha256 corresponds to the JSON schema field "sha256".
	Sha256 string `json:"sha256" yaml:"sha256" mapstructure:"sha256"`

	// Warnings corresponds to the JSON schema field "warnings".
	Warnings []interface{} `json:"warnings,omitempty,omitzero" yaml:"warnings,omitempty" mapstructure:"warnings,omitempty"`

	AdditionalProperties interface{} `mapstructure:",remain"`
}

Provenance of an imported workbook (spec/14-xlsx-interoperability.md, 14.1); also written to source/source.json.

func (*CSVXWorkbookSource) UnmarshalJSON added in v0.1.13

func (j *CSVXWorkbookSource) UnmarshalJSON(value []byte) error

UnmarshalJSON implements json.Unmarshaler.

type CSVXWorkbookSourceAuthority added in v0.1.13

type CSVXWorkbookSourceAuthority string
const CSVXWorkbookSourceAuthorityCsvx CSVXWorkbookSourceAuthority = "csvx"
const CSVXWorkbookSourceAuthorityOriginal CSVXWorkbookSourceAuthority = "original"

func (*CSVXWorkbookSourceAuthority) UnmarshalJSON added in v0.1.13

func (j *CSVXWorkbookSourceAuthority) UnmarshalJSON(value []byte) error

UnmarshalJSON implements json.Unmarshaler.

type CSVXWorkbookSourceFeatures added in v0.1.13

type CSVXWorkbookSourceFeatures map[string]interface{}

type CSVXWorkbookSourceFormat added in v0.1.13

type CSVXWorkbookSourceFormat string
const CSVXWorkbookSourceFormatXlsm CSVXWorkbookSourceFormat = "xlsm"
const CSVXWorkbookSourceFormatXlsx CSVXWorkbookSourceFormat = "xlsx"

func (*CSVXWorkbookSourceFormat) UnmarshalJSON added in v0.1.13

func (j *CSVXWorkbookSourceFormat) UnmarshalJSON(value []byte) error

UnmarshalJSON implements json.Unmarshaler.

type Cell

type Cell struct {
	// Cached corresponds to the JSON schema field "cached".
	Cached *Value `json:"cached,omitempty,omitzero" yaml:"cached,omitempty" mapstructure:"cached,omitempty"`

	// Formula corresponds to the JSON schema field "formula".
	Formula *string `json:"formula,omitempty,omitzero" yaml:"formula,omitempty" mapstructure:"formula,omitempty"`

	// Style corresponds to the JSON schema field "style".
	Style *Id `json:"style,omitempty,omitzero" yaml:"style,omitempty" mapstructure:"style,omitempty"`

	// Type corresponds to the JSON schema field "type".
	Type *ScalarType `json:"type,omitempty,omitzero" yaml:"type,omitempty" mapstructure:"type,omitempty"`

	// Validation corresponds to the JSON schema field "validation".
	Validation *Validation `json:"validation,omitempty,omitzero" yaml:"validation,omitempty" mapstructure:"validation,omitempty"`

	AdditionalProperties interface{} `mapstructure:",remain"`
}

func (*Cell) UnmarshalJSON

func (j *Cell) UnmarshalJSON(value []byte) error

UnmarshalJSON implements json.Unmarshaler.

type Column

type Column struct {
	// Id corresponds to the JSON schema field "id".
	Id string `json:"id" yaml:"id" mapstructure:"id"`

	// Name corresponds to the JSON schema field "name".
	Name *string `json:"name,omitempty,omitzero" yaml:"name,omitempty" mapstructure:"name,omitempty"`

	// Type corresponds to the JSON schema field "type".
	Type *ScalarType `json:"type,omitempty,omitzero" yaml:"type,omitempty" mapstructure:"type,omitempty"`

	// XLSX character-width units (the number of '0' glyphs, in the workbook's default
	// font, that fit the column, plus padding) — see spec/03-sheets.md for the
	// canonical pixel conversion formula every engine must use.
	Width *float64 `json:"width,omitempty,omitzero" yaml:"width,omitempty" mapstructure:"width,omitempty"`

	AdditionalProperties interface{} `mapstructure:",remain"`
}

func (*Column) UnmarshalJSON

func (j *Column) UnmarshalJSON(value []byte) error

UnmarshalJSON implements json.Unmarshaler.

type Id

type Id string

func (*Id) UnmarshalJSON

func (j *Id) UnmarshalJSON(value []byte) error

UnmarshalJSON implements json.Unmarshaler.

type Print added in v0.1.3

type Print struct {
	// Area corresponds to the JSON schema field "area".
	Area *string `json:"area,omitempty,omitzero" yaml:"area,omitempty" mapstructure:"area,omitempty"`

	// CenterHorizontally corresponds to the JSON schema field "centerHorizontally".
	CenterHorizontally *bool `json:"centerHorizontally,omitempty,omitzero" yaml:"centerHorizontally,omitempty" mapstructure:"centerHorizontally,omitempty"`

	// ColumnBreaks corresponds to the JSON schema field "columnBreaks".
	ColumnBreaks []int `json:"columnBreaks,omitempty,omitzero" yaml:"columnBreaks,omitempty" mapstructure:"columnBreaks,omitempty"`

	// FitToHeight corresponds to the JSON schema field "fitToHeight".
	FitToHeight *int `json:"fitToHeight,omitempty,omitzero" yaml:"fitToHeight,omitempty" mapstructure:"fitToHeight,omitempty"`

	// FitToWidth corresponds to the JSON schema field "fitToWidth".
	FitToWidth *int `json:"fitToWidth,omitempty,omitzero" yaml:"fitToWidth,omitempty" mapstructure:"fitToWidth,omitempty"`

	// Gridlines corresponds to the JSON schema field "gridlines".
	Gridlines *bool `json:"gridlines,omitempty,omitzero" yaml:"gridlines,omitempty" mapstructure:"gridlines,omitempty"`

	// Inches, the unit XLSX uses.
	Margins *PrintMargins `json:"margins,omitempty,omitzero" yaml:"margins,omitempty" mapstructure:"margins,omitempty"`

	// Orientation corresponds to the JSON schema field "orientation".
	Orientation *PrintOrientation `json:"orientation,omitempty,omitzero" yaml:"orientation,omitempty" mapstructure:"orientation,omitempty"`

	// PageOrder corresponds to the JSON schema field "pageOrder".
	PageOrder *PrintPageOrder `json:"pageOrder,omitempty,omitzero" yaml:"pageOrder,omitempty" mapstructure:"pageOrder,omitempty"`

	// PaperSize corresponds to the JSON schema field "paperSize".
	PaperSize *PrintPaperSize `json:"paperSize,omitempty,omitzero" yaml:"paperSize,omitempty" mapstructure:"paperSize,omitempty"`

	// RepeatColumns corresponds to the JSON schema field "repeatColumns".
	RepeatColumns *string `json:"repeatColumns,omitempty,omitzero" yaml:"repeatColumns,omitempty" mapstructure:"repeatColumns,omitempty"`

	// RepeatRows corresponds to the JSON schema field "repeatRows".
	RepeatRows *string `json:"repeatRows,omitempty,omitzero" yaml:"repeatRows,omitempty" mapstructure:"repeatRows,omitempty"`

	// RowBreaks corresponds to the JSON schema field "rowBreaks".
	RowBreaks []int `json:"rowBreaks,omitempty,omitzero" yaml:"rowBreaks,omitempty" mapstructure:"rowBreaks,omitempty"`

	// Scale corresponds to the JSON schema field "scale".
	Scale *float64 `json:"scale,omitempty,omitzero" yaml:"scale,omitempty" mapstructure:"scale,omitempty"`

	AdditionalProperties interface{} `mapstructure:",remain"`
}

Print and pagination settings — see spec/03-sheets.md (Print settings) and spec/14-xlsx-interoperability.md.

func (*Print) UnmarshalJSON added in v0.1.3

func (j *Print) UnmarshalJSON(value []byte) error

UnmarshalJSON implements json.Unmarshaler.

type PrintMargins added in v0.1.3

type PrintMargins struct {
	// Bottom corresponds to the JSON schema field "bottom".
	Bottom *float64 `json:"bottom,omitempty,omitzero" yaml:"bottom,omitempty" mapstructure:"bottom,omitempty"`

	// Left corresponds to the JSON schema field "left".
	Left *float64 `json:"left,omitempty,omitzero" yaml:"left,omitempty" mapstructure:"left,omitempty"`

	// Right corresponds to the JSON schema field "right".
	Right *float64 `json:"right,omitempty,omitzero" yaml:"right,omitempty" mapstructure:"right,omitempty"`

	// Top corresponds to the JSON schema field "top".
	Top *float64 `json:"top,omitempty,omitzero" yaml:"top,omitempty" mapstructure:"top,omitempty"`

	AdditionalProperties interface{} `mapstructure:",remain"`
}

Inches, the unit XLSX uses.

func (*PrintMargins) UnmarshalJSON added in v0.1.3

func (j *PrintMargins) UnmarshalJSON(value []byte) error

UnmarshalJSON implements json.Unmarshaler.

type PrintOrientation added in v0.1.3

type PrintOrientation string
const PrintOrientationLandscape PrintOrientation = "landscape"
const PrintOrientationPortrait PrintOrientation = "portrait"

func (*PrintOrientation) UnmarshalJSON added in v0.1.3

func (j *PrintOrientation) UnmarshalJSON(value []byte) error

UnmarshalJSON implements json.Unmarshaler.

type PrintPageOrder added in v0.1.3

type PrintPageOrder string
const PrintPageOrderDownThenOver PrintPageOrder = "downThenOver"
const PrintPageOrderOverThenDown PrintPageOrder = "overThenDown"

func (*PrintPageOrder) UnmarshalJSON added in v0.1.3

func (j *PrintPageOrder) UnmarshalJSON(value []byte) error

UnmarshalJSON implements json.Unmarshaler.

type PrintPaperSize added in v0.1.3

type PrintPaperSize string
const PrintPaperSizeA3 PrintPaperSize = "a3"
const PrintPaperSizeA4 PrintPaperSize = "a4"
const PrintPaperSizeA5 PrintPaperSize = "a5"
const PrintPaperSizeLegal PrintPaperSize = "legal"
const PrintPaperSizeLetter PrintPaperSize = "letter"
const PrintPaperSizeTabloid PrintPaperSize = "tabloid"

func (*PrintPaperSize) UnmarshalJSON added in v0.1.3

func (j *PrintPaperSize) UnmarshalJSON(value []byte) error

UnmarshalJSON implements json.Unmarshaler.

type ScalarType

type ScalarType string
const ScalarTypeBlank ScalarType = "blank"
const ScalarTypeBoolean ScalarType = "boolean"
const ScalarTypeDate ScalarType = "date"
const ScalarTypeDatetime ScalarType = "datetime"
const ScalarTypeDecimal ScalarType = "decimal"
const ScalarTypeError ScalarType = "error"
const ScalarTypeInteger ScalarType = "integer"
const ScalarTypeString ScalarType = "string"
const ScalarTypeTime ScalarType = "time"

func (*ScalarType) UnmarshalJSON

func (j *ScalarType) UnmarshalJSON(value []byte) error

UnmarshalJSON implements json.Unmarshaler.

type Validation

type Validation struct {
	// AllowBlank corresponds to the JSON schema field "allowBlank".
	AllowBlank *bool `json:"allowBlank,omitempty,omitzero" yaml:"allowBlank,omitempty" mapstructure:"allowBlank,omitempty"`

	// Formula1 corresponds to the JSON schema field "formula1".
	Formula1 *string `json:"formula1,omitempty,omitzero" yaml:"formula1,omitempty" mapstructure:"formula1,omitempty"`

	// Formula2 corresponds to the JSON schema field "formula2".
	Formula2 *string `json:"formula2,omitempty,omitzero" yaml:"formula2,omitempty" mapstructure:"formula2,omitempty"`

	// Message corresponds to the JSON schema field "message".
	Message *string `json:"message,omitempty,omitzero" yaml:"message,omitempty" mapstructure:"message,omitempty"`

	// Operator corresponds to the JSON schema field "operator".
	Operator *string `json:"operator,omitempty,omitzero" yaml:"operator,omitempty" mapstructure:"operator,omitempty"`

	// Type corresponds to the JSON schema field "type".
	Type *ValidationType `json:"type,omitempty,omitzero" yaml:"type,omitempty" mapstructure:"type,omitempty"`

	AdditionalProperties interface{} `mapstructure:",remain"`
}

type ValidationType

type ValidationType string
const ValidationTypeCustom ValidationType = "custom"
const ValidationTypeDate ValidationType = "date"
const ValidationTypeDecimal ValidationType = "decimal"
const ValidationTypeList ValidationType = "list"
const ValidationTypeTextLength ValidationType = "textLength"
const ValidationTypeWhole ValidationType = "whole"

func (*ValidationType) UnmarshalJSON

func (j *ValidationType) UnmarshalJSON(value []byte) error

UnmarshalJSON implements json.Unmarshaler.

type Value

type Value struct {
	// Code corresponds to the JSON schema field "code".
	Code *string `json:"code,omitempty,omitzero" yaml:"code,omitempty" mapstructure:"code,omitempty"`

	// Message corresponds to the JSON schema field "message".
	Message *string `json:"message,omitempty,omitzero" yaml:"message,omitempty" mapstructure:"message,omitempty"`

	// Type corresponds to the JSON schema field "type".
	Type ValueType `json:"type" yaml:"type" mapstructure:"type"`

	// Value corresponds to the JSON schema field "value".
	Value interface{} `json:"value,omitempty,omitzero" yaml:"value,omitempty" mapstructure:"value,omitempty"`

	AdditionalProperties interface{} `mapstructure:",remain"`
}

func (*Value) UnmarshalJSON

func (j *Value) UnmarshalJSON(value []byte) error

UnmarshalJSON implements json.Unmarshaler.

type ValueType

type ValueType string
const ValueTypeBlank ValueType = "blank"
const ValueTypeBoolean ValueType = "boolean"
const ValueTypeDate ValueType = "date"
const ValueTypeDatetime ValueType = "datetime"
const ValueTypeDecimal ValueType = "decimal"
const ValueTypeError ValueType = "error"
const ValueTypeInteger ValueType = "integer"
const ValueTypeString ValueType = "string"
const ValueTypeTime ValueType = "time"

func (*ValueType) UnmarshalJSON

func (j *ValueType) UnmarshalJSON(value []byte) error

UnmarshalJSON implements json.Unmarshaler.

Jump to

Keyboard shortcuts

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