Skip to content

$ref and other properties in JSON Reference #136

Open
@massadm

Description

@massadm
namespace Swaggest\JsonSchema;
interface RemoteRefProvider
{
    public function getSchemaData($url);
}

Is it possible in getSchemaData to get an JSON object, which contains a member named $ref?

[...]
{
"title": "my_value",
"description": "my_value",
"$ref": "..."
}
[...]

I am aware of the limitations of a JSON Reference, but I need to do it in such a way that the properties with the value "my_value" from the example override the own properties of the schema referenced by $ref. To do this, in getSchemaData I need access to the object containing the $ref, the rest is trivial.

Any solution that works will do!

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