Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#181 make RefSolver::$maxDepth able to configure #184

Closed
wants to merge 1 commit into from

Conversation

edisonthk
Copy link

I am having this #184 issue also. Due to low maxDepth, JsonSchema\Exception\JsonDecodingException: The maximum stack depth has been exceeded message is keep throwing.

Make it changeable so that it can be changed based on developer needs.

@bighappyface
Copy link
Collaborator

@edisonthk you don't need a setter method to set the value of a public, static variable like JsonSchema/RefResolver::$maxDepth

// e.g.
JsonSchema/RefResolver::$maxDepth = 20;

The setter method would only work using a concrete instance, and the static variable value is used across all instances.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants