You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<?php
require "vendor/autoload.php";
use Opis\JsonSchema\{
Validator,
ValidationResult,
Helper,
};
$validator = new Validator();
$result = $validator->validate('{}', 'https://github.com/raw/OAI/OpenAPI-Specification/main/schemas/v3.0/schema.json');
if ($result->isValid()) {
echo 'valid';
}
// Checking if there is an error
if ($result->hasError()) {
// Get the error
echo $result->error();
}
Unexpected result:
RuntimeException with message 'Schema not found: https://github.com/raw/OAI/OpenAPI-Specification/main/schemas/v3.0/schema.json#'
The text was updated successfully, but these errors were encountered:
mxr576
changed the title
External schema cannot be oaded
External schema cannot be loaded
Nov 2, 2022
I am following the official documentation but I have bumped into a fundamental issue at the first try
Unexpected result:
The text was updated successfully, but these errors were encountered: