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

How to retrieve the resolved schema #164

Open
Barbapapazes opened this issue Jan 29, 2025 · 0 comments
Open

How to retrieve the resolved schema #164

Barbapapazes opened this issue Jan 29, 2025 · 0 comments

Comments

@Barbapapazes
Copy link

Barbapapazes commented Jan 29, 2025

Hello 👋,

I'm building an application where I receive a JSON schema that is stored in the database.

To avoid future heavy computation, I resolve schema references before saving it. I'm using this package and actually, I'm doing it like this:

$resolvedSchema = json_decode(json_encode(Schema::import(json_decode(json_encode($schema)))), true);

It works well but I was wondering if there was a better way to do it since using a lot fo json_decode and json_encode does not seems optimal.

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

No branches or pull requests

1 participant