laravel-json-schema-assertions icon indicating copy to clipboard operation
laravel-json-schema-assertions copied to clipboard

Schema function doesn't exist on SchemaAssertion [QUESTION]

Open denitsa-md opened this issue 5 years ago • 2 comments

I'm just looking at the master branch in here (haven't installed it) and I'm wondering how is it possible that the Service provider calls a schema function on the SchemaAssertion:

https://github.com/sixlive/laravel-json-schema-assertions/blob/master/src/ServiceProvider.php#L27

But there is no schema function in the class.

https://github.com/sixlive/laravel-json-schema-assertions/blob/master/src/SchemaAssertion.php

Maybe I'm missing something?

denitsa-md avatar Apr 20 '20 16:04 denitsa-md

Hmmm, this does indeed look odd. I'll look into this.

sixlive avatar Apr 20 '20 17:04 sixlive

The SchemaAssertion being called in the ServiceProvider is the class provided by https://github.com/sixlive/json-schema-assertions/blob/master/src/SchemaAssertion.php (dependency included in composer.json), not the SchemaAssertion class in this package.

ce-brex avatar Dec 03 '20 22:12 ce-brex