Skip to content

Error: Swagger schema's not supported #1060

@khareyash05

Description

@khareyash05

Hi! When I am trying to parse a swagger schema file m giving me this error

value of openapi must be a non empty string

this is a small snippet of my code

ctx := context.Background()
	loader := &openapi3.Loader{Context: ctx, IsExternalRefsAllowed: true}
	doc, err := loader.LoadFromFile(filePath)
	if err != nil {
		return nil, fmt.Errorf("failed to Load OpenAPISchema file: %w", err)
	}
	err = doc.Validate(ctx)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions