Skip to content

How to retrieve the resolved schema聽#164

Description

@Barbapapazes

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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