diff --git a/pkg/generated/models/rekord_v001_schema.go b/pkg/generated/models/rekord_v001_schema.go index 32f079a41..a979c9be4 100644 --- a/pkg/generated/models/rekord_v001_schema.go +++ b/pkg/generated/models/rekord_v001_schema.go @@ -175,7 +175,6 @@ func (m *RekordV001Schema) UnmarshalBinary(b []byte) error { type RekordV001SchemaData struct { // Specifies the content inline within the document - // Max Length: 32000000 // Format: byte Content strfmt.Base64 `json:"content,omitempty"` @@ -191,10 +190,6 @@ type RekordV001SchemaData struct { func (m *RekordV001SchemaData) Validate(formats strfmt.Registry) error { var res []error - if err := m.validateContent(formats); err != nil { - res = append(res, err) - } - if err := m.validateHash(formats); err != nil { res = append(res, err) } @@ -209,18 +204,6 @@ func (m *RekordV001SchemaData) Validate(formats strfmt.Registry) error { return nil } -func (m *RekordV001SchemaData) validateContent(formats strfmt.Registry) error { - if swag.IsZero(m.Content) { // not required - return nil - } - - if err := validate.MaxLength("data"+"."+"content", "body", m.Content.String(), 32000000); err != nil { - return err - } - - return nil -} - func (m *RekordV001SchemaData) validateHash(formats strfmt.Registry) error { if swag.IsZero(m.Hash) { // not required return nil diff --git a/pkg/generated/models/rpm_v001_schema.go b/pkg/generated/models/rpm_v001_schema.go index 8202f9b75..15846c830 100644 --- a/pkg/generated/models/rpm_v001_schema.go +++ b/pkg/generated/models/rpm_v001_schema.go @@ -175,7 +175,6 @@ func (m *RpmV001Schema) UnmarshalBinary(b []byte) error { type RpmV001SchemaPackage struct { // Specifies the package inline within the document - // Max Length: 32000000 // Format: byte Content strfmt.Base64 `json:"content,omitempty"` @@ -194,10 +193,6 @@ type RpmV001SchemaPackage struct { func (m *RpmV001SchemaPackage) Validate(formats strfmt.Registry) error { var res []error - if err := m.validateContent(formats); err != nil { - res = append(res, err) - } - if err := m.validateHash(formats); err != nil { res = append(res, err) } @@ -212,18 +207,6 @@ func (m *RpmV001SchemaPackage) Validate(formats strfmt.Registry) error { return nil } -func (m *RpmV001SchemaPackage) validateContent(formats strfmt.Registry) error { - if swag.IsZero(m.Content) { // not required - return nil - } - - if err := validate.MaxLength("package"+"."+"content", "body", m.Content.String(), 32000000); err != nil { - return err - } - - return nil -} - func (m *RpmV001SchemaPackage) validateHash(formats strfmt.Registry) error { if swag.IsZero(m.Hash) { // not required return nil diff --git a/pkg/generated/restapi/embedded_spec.go b/pkg/generated/restapi/embedded_spec.go index bb730d4f9..ba8c6e309 100644 --- a/pkg/generated/restapi/embedded_spec.go +++ b/pkg/generated/restapi/embedded_spec.go @@ -1164,8 +1164,7 @@ func init() { "content": { "description": "Specifies the content inline within the document", "type": "string", - "format": "byte", - "maxLength": 32000000 + "format": "byte" }, "hash": { "description": "Specifies the hash algorithm and value for the content", @@ -1333,8 +1332,7 @@ func init() { "content": { "description": "Specifies the package inline within the document", "type": "string", - "format": "byte", - "maxLength": 32000000 + "format": "byte" }, "hash": { "description": "Specifies the hash algorithm and value for the package", @@ -1570,8 +1568,7 @@ func init() { "content": { "description": "Specifies the content inline within the document", "type": "string", - "format": "byte", - "maxLength": 32000000 + "format": "byte" }, "hash": { "description": "Specifies the hash algorithm and value for the content", @@ -1750,8 +1747,7 @@ func init() { "content": { "description": "Specifies the package inline within the document", "type": "string", - "format": "byte", - "maxLength": 32000000 + "format": "byte" }, "hash": { "description": "Specifies the hash algorithm and value for the package", diff --git a/pkg/types/rekord/v0.0.1/rekord_v0_0_1_schema.json b/pkg/types/rekord/v0.0.1/rekord_v0_0_1_schema.json index becd2b3b2..5beb510d4 100644 --- a/pkg/types/rekord/v0.0.1/rekord_v0_0_1_schema.json +++ b/pkg/types/rekord/v0.0.1/rekord_v0_0_1_schema.json @@ -86,8 +86,7 @@ "content": { "description": "Specifies the content inline within the document", "type": "string", - "format": "byte", - "maxLength" : 32000000 + "format": "byte" } }, "oneOf": [ diff --git a/pkg/types/rpm/v0.0.1/rpm_v0_0_1_schema.json b/pkg/types/rpm/v0.0.1/rpm_v0_0_1_schema.json index 6fbf45db3..f74e960ea 100644 --- a/pkg/types/rpm/v0.0.1/rpm_v0_0_1_schema.json +++ b/pkg/types/rpm/v0.0.1/rpm_v0_0_1_schema.json @@ -64,8 +64,7 @@ "content": { "description": "Specifies the package inline within the document", "type": "string", - "format": "byte", - "maxLength" : 32000000 + "format": "byte" } }, "oneOf": [