Documentation ¶
Index ¶
- type RawStringSlice
- type StringOrSlice
- type StringSlice
- func (stringSlice *StringSlice) IsEmpty() bool
- func (stringSlice StringSlice) JSONSchemaAlias() any
- func (stringSlice StringSlice) MarshalJSON() ([]byte, error)
- func (stringSlice StringSlice) MarshalYAML() (interface{}, error)
- func (stringSlice StringSlice) Normalize(value string) string
- func (stringSlice StringSlice) String() string
- func (stringSlice StringSlice) ToSlice() []string
- func (stringSlice *StringSlice) UnmarshalJSON(data []byte) error
- func (stringSlice *StringSlice) UnmarshalYAML(unmarshal func(interface{}) error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RawStringSlice ¶
type RawStringSlice struct {
StringSlice
}
func NewRawStringSlice ¶
func NewRawStringSlice(value interface{}) *RawStringSlice
func (RawStringSlice) JSONSchemaAlias ¶ added in v3.2.3
func (rawStringSlice RawStringSlice) JSONSchemaAlias() any
func (*RawStringSlice) Normalize ¶
func (rawStringSlice *RawStringSlice) Normalize(value string) string
func (*RawStringSlice) UnmarshalYAML ¶ added in v3.2.5
func (rawStringSlice *RawStringSlice) UnmarshalYAML(unmarshal func(interface{}) error) error
type StringOrSlice ¶ added in v3.2.3
type StringOrSlice string
func (StringOrSlice) JSONSchema ¶ added in v3.2.3
func (StringOrSlice) JSONSchema() *jsonschema.Schema
type StringSlice ¶
type StringSlice struct {
Value interface{}
}
StringSlice represents a single (in-lined) or multiple string value(s). The unmarshaller does not automatically convert in-lined strings to []string, hence the interface{} type is required.
func New ¶
func New(value interface{}) StringSlice
func (*StringSlice) IsEmpty ¶
func (stringSlice *StringSlice) IsEmpty() bool
func (StringSlice) JSONSchemaAlias ¶ added in v3.2.3
func (stringSlice StringSlice) JSONSchemaAlias() any
Implement alias for stringslice and reuse it everywhere
func (StringSlice) MarshalJSON ¶
func (stringSlice StringSlice) MarshalJSON() ([]byte, error)
func (StringSlice) MarshalYAML ¶
func (stringSlice StringSlice) MarshalYAML() (interface{}, error)
func (StringSlice) Normalize ¶
func (stringSlice StringSlice) Normalize(value string) string
func (StringSlice) String ¶
func (stringSlice StringSlice) String() string
func (StringSlice) ToSlice ¶
func (stringSlice StringSlice) ToSlice() []string
func (*StringSlice) UnmarshalJSON ¶
func (stringSlice *StringSlice) UnmarshalJSON(data []byte) error
func (*StringSlice) UnmarshalYAML ¶
func (stringSlice *StringSlice) UnmarshalYAML(unmarshal func(interface{}) error) error
Click to show internal directories.
Click to hide internal directories.