opis / json-schema

JSON Schema validator for PHP
https://opis.io/json-schema
Apache License 2.0
567 stars 58 forks source link

[Question] Passing global variable inside $id #112

Closed Niiph closed 2 years ago

Niiph commented 2 years ago

Since "$id" has to be absolute URI and I need reusability and flexibility in my code I wanted to pass host name in global variable, like here: "$id": "{HOST_NAME}core/application/dto/some_dto.json"

But this is not working at all. Is there any other way to tackle this?