diff --git a/pkg/importer/openapi3_legacy.go b/pkg/importer/openapi3_legacy.go index ef803999..b9044c51 100644 --- a/pkg/importer/openapi3_legacy.go +++ b/pkg/importer/openapi3_legacy.go @@ -331,7 +331,7 @@ func (o *OpenAPI3Importer) buildField(name string, prop *openapi3.SchemaRef) (Fi if isArray && prop.Value.Items.Ref != "" { f.Type = &Array{Items: nameOnlyType(typeNameFromSchemaRef(prop.Value.Items))} - f.SizeSpec = makeSizeSpec(prop.Value.MinItems, prop.Value.MaxItems) + // f.SizeSpec = makeSizeSpec(prop.Value.MinItems, prop.Value.MaxItems) return f, nil } diff --git a/pkg/importer/tests/openapi2/array-in-object.yaml b/pkg/importer/tests/openapi2/array-in-object.yaml index ac11b340..e13d8bcb 100644 --- a/pkg/importer/tests/openapi2/array-in-object.yaml +++ b/pkg/importer/tests/openapi2/array-in-object.yaml @@ -33,6 +33,8 @@ definitions: type: array items: $ref: '#/definitions/OtherObject' + minItems: 1 + maxItems: 10 missingItems: type: array OtherObject: