PATH:
home
/
niazsaze
/
public_html
/
wp-content
/
plugins
/
woocommerce
/
vendor
/
opis
/
json-schema
/
src
/
Keywords
<?php /* ============================================================================ * Copyright 2020 Zindex Software * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ============================================================================ */ namespace Opis\JsonSchema\Keywords; use Opis\JsonSchema\Info\DataInfo; use Opis\JsonSchema\{ValidationContext, Schema}; use Opis\JsonSchema\Errors\{ErrorContainer, ValidationError}; trait ErrorTrait { /** * @param Schema $schema * @param ValidationContext $context * @param string $keyword * @param string $message * @param array $args * @param ErrorContainer|ValidationError|ValidationError[]|null $errors * @return ValidationError */ protected function error( Schema $schema, ValidationContext $context, string $keyword, string $message, array $args = [], $errors = null ): ValidationError { if ($errors) { if ($errors instanceof ValidationError) { $errors = [$errors]; } elseif ($errors instanceof ErrorContainer) { $errors = $errors->all(); } } return new ValidationError($keyword, $schema, DataInfo::fromContext($context), $message, $args, is_array($errors) ? $errors : []); } }
[-] SlotsKeyword.php
[edit]
[-] ExclusiveMinimumKeyword.php
[edit]
[-] ContainsKeyword.php
[edit]
[-] MinPropertiesDataKeyword.php
[edit]
[-] RecursiveRefKeyword.php
[edit]
[-] AllOfKeyword.php
[edit]
[-] MinLengthKeyword.php
[edit]
[-] URIRefKeyword.php
[edit]
[-] AbstractRefKeyword.php
[edit]
[-] PropertiesKeyword.php
[edit]
[-] ExclusiveMaximumKeyword.php
[edit]
[-] ConstDataKeyword.php
[edit]
[-] ExclusiveMaximumDataKeyword.php
[edit]
[-] DependenciesKeyword.php
[edit]
[-] MinimumKeyword.php
[edit]
[-] UniqueItemsKeyword.php
[edit]
[-] MaxPropertiesKeywords.php
[edit]
[-] NotKeyword.php
[edit]
[-] DependentRequiredKeyword.php
[edit]
[-] ContentSchemaKeyword.php
[edit]
[-] MinItemsKeyword.php
[edit]
[-] MaxLengthKeyword.php
[edit]
[-] ContentMediaTypeKeyword.php
[edit]
[-] PatternDataKeyword.php
[edit]
[-] MinPropertiesKeyword.php
[edit]
[-] AnyOfKeyword.php
[edit]
[-] PointerRefKeyword.php
[edit]
[-] MaxItemsKeyword.php
[edit]
[-] ItemsKeyword.php
[edit]
[-] ErrorTrait.php
[edit]
[-] RequiredDataKeyword.php
[edit]
[-] FormatKeyword.php
[edit]
[-] DefaultKeyword.php
[edit]
[-] UniqueItemsDataKeyword.php
[edit]
[-] MaxPropertiesDataKeyword.php
[edit]
[-] IfThenElseKeyword.php
[edit]
[-] MaxLengthDataKeyword.php
[edit]
[-] MaximumDataKeyword.php
[edit]
[-] OneOfKeyword.php
[edit]
[-] FiltersKeyword.php
[edit]
[-] PatternPropertiesKeyword.php
[edit]
[-] ContentEncodingKeyword.php
[edit]
[-] PropertyNamesKeyword.php
[edit]
[-] DependentSchemasKeyword.php
[edit]
[-] AdditionalItemsKeyword.php
[edit]
[-] MultipleOfKeyword.php
[edit]
[-] TemplateRefKeyword.php
[edit]
[-] IterableDataValidationTrait.php
[edit]
[-] ConstKeyword.php
[edit]
[-] AdditionalPropertiesKeyword.php
[edit]
[-] TypeKeyword.php
[edit]
[-] MinItemsDataKeyword.php
[edit]
[-] PatternKeyword.php
[edit]
[-] MinLengthDataKeyword.php
[edit]
[-] EnumDataKeyword.php
[edit]
[-] MaximumKeyword.php
[edit]
[-] MultipleOfDataKeyword.php
[edit]
[+]
..
[-] ExclusiveMinimumDataKeyword.php
[edit]
[-] RequiredKeyword.php
[edit]
[-] UnevaluatedItemsKeyword.php
[edit]
[-] OfTrait.php
[edit]
[-] UnevaluatedPropertiesKeyword.php
[edit]
[-] MinimumDataKeyword.php
[edit]
[-] MaxItemsDataKeyword.php
[edit]
[-] EnumKeyword.php
[edit]
[-] FormatDataKeyword.php
[edit]