Skip to content

Process crashes for large schema #295

@sunnyagain

Description

@sunnyagain

I'm trying to run cli with bitbucket OpenAPI schema from

https://dac-static.atlassian.com/cloud/bitbucket/swagger.v3.json?_v=2.300.114-0.1324.0

This is large file even browser takes a while to format this schema in readable json.

When using this with restish it crashes with following error.

runtime: goroutine stack exceeds 1000000000-byte limit
runtime: sp=0xc092c80318 stack=[0xc092c80000, 0xc0b2c80000]
fatal error: stack overflow

I have tried reducing this schema to only specific to my required tags with following but still it is crashing with similar error.
So I'm not sure what is wrong here

jq '.paths|= with_entries( select (.value |to_entries[0] |select( .value.tags? |any(.=="Pipelines"))))' schema.json > ~/mini-schema.json

My env

go version go1.24.5 darwin/amd64
restish version dev-2025-07-24-17:33

Thanks in advance

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