Skip to content

Panicking on unresolved ref #324

@Jleagle

Description

@Jleagle

Hi, I am calling openapi3filter.ValidateRequest() (via https://github.com/deepmap/oapi-codegen/blob/master/pkg/chi-middleware/oapi_validate.go#L23) and I am getting

panic: Validating Swagger failed: invalid components: found unresolved ref: "#/components/schemas/product-price-schema"

If I remove the places that use product-price-schema, the same thing happens to stat-schema. As far as I can tell the JSON is according to spec.

The OpenAPI3 JSON is here (https://globalsteam.online/api/globalsteam.json), both the schemas exist inside #/components/schemas/

Any ideas? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions