这是indexloc提供的服务,不要输入任何密码
Skip to content

An OAS with circular schema definitions fails to create API proxy #199

@kurtkanaskie

Description

@kurtkanaskie

Given the attached OAS the following command fails with or without --validate false

$ apigeecli -t $TOKEN apis create openapi -n leo-clm-basic -f circular-reference.json -o apigeex-payg-kurt --validate false
ERROR: 2023/05/08 09:20:28 generateapi.go:119: kin-openapi bug found: circular schema reference not handled - #/components/schemas/TypeInfo -> #/components/schemas/Type -> #/components/schemas/Type -> #/components/schemas/Type -> #/components/schemas/Type
Error: kin-openapi bug found: circular schema reference not handled - #/components/schemas/TypeInfo -> #/components/schemas/Type -> #/components/schemas/Type -> #/components/schemas/Type -> #/components/schemas/Type

Other tools (e.g. openapi2apigee) and the UI to create the proxy and to add an Open API Spec Validation policy, process the OAS without errors.

Rename to circular-reference.json
circular-reference-json.txt

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