resources/js: Add option for setting bundle format

Fixes #7503
This commit is contained in:
Bjørn Erik Pedersen
2020-07-21 17:59:03 +02:00
parent eded9ac2a0
commit 0256959a35
5 changed files with 129 additions and 42 deletions

View File

@@ -378,6 +378,11 @@ func DecodeTypes(mms ...map[string]interface{}) (Types, error) {
return m, nil
}
// IsZero reports whether this Type represents a zero value.
func (m Type) IsZero() bool {
return m.SubType == ""
}
// MarshalJSON returns the JSON encoding of m.
func (m Type) MarshalJSON() ([]byte, error) {
type Alias Type