Skip to content

initial typeschema next implementation #328

initial typeschema next implementation

initial typeschema next implementation #328

Triggered via push October 4, 2024 20:02
Status Failure
Total duration 25s
Artifacts

ci.yml

on: push
Matrix: phpunit
Fit to window
Zoom out
Zoom in

Annotations

13 errors
PHPUnit (PHP: 8.2)
Process completed with exit code 2.
PHPUnit (PHP: 8.3)
The job was canceled because "_8_2" failed.
PHPUnit (PHP: 8.3)
The operation was canceled.
InvalidReturnType: src/Builder.php#L124
src/Builder.php:124:73: InvalidReturnType: The declared return type 'PSX\Schema\Type\MapDefinitionType' for PSX\Schema\Builder::addMap is incorrect, got 'PSX\Schema\Type\MapPropertyType' (see https://psalm.dev/011)
InvalidReturnStatement: src/Builder.php#L126
src/Builder.php:126:16: InvalidReturnStatement: The inferred type 'PSX\Schema\Type\MapPropertyType' does not match the declared return type 'PSX\Schema\Type\MapDefinitionType' for PSX\Schema\Builder::addMap (see https://psalm.dev/128)
InvalidArgument: src/Definitions.php#L149
src/Definitions.php:149:38: InvalidArgument: Argument 2 of PSX\Schema\Definitions::addType expects PSX\Schema\Type\DefinitionTypeAbstract, but PSX\Schema\DefinitionType provided (see https://psalm.dev/004)
UndefinedInterfaceMethod: src/Definitions.php#L165
src/Definitions.php:165:40: UndefinedInterfaceMethod: Method PSX\Schema\SchemaInterface::getType does not exist (see https://psalm.dev/181)
UndefinedMethod: src/Generator/CSharp.php#L83
src/Generator/CSharp.php:83:55: UndefinedMethod: Method PSX\Schema\Type\MapDefinitionType::getAdditionalProperties does not exist (see https://psalm.dev/022)
UndefinedMethod: src/Generator/Code/Property.php#L87
src/Generator/Code/Property.php:87:79: UndefinedMethod: Method PSX\Schema\Type\PropertyTypeAbstract::isReadonly does not exist (see https://psalm.dev/022)
InvalidArgument: src/Generator/CodeGeneratorAbstract.php#L76
src/Generator/CodeGeneratorAbstract.php:76:46: InvalidArgument: Argument 2 of PSX\Schema\Generator\CodeGeneratorAbstract::generateDefinition expects PSX\Schema\TypeInterface, but PSX\Schema\DefinitionType provided (see https://psalm.dev/004)
UndefinedInterfaceMethod: src/Generator/CodeGeneratorAbstract.php#L79
src/Generator/CodeGeneratorAbstract.php:79:38: UndefinedInterfaceMethod: Method PSX\Schema\SchemaInterface::getType does not exist (see https://psalm.dev/181)
UndefinedMethod: src/Generator/CodeGeneratorAbstract.php#L103
src/Generator/CodeGeneratorAbstract.php:103:42: UndefinedMethod: Method PSX\Schema\Type\StructDefinitionType::getTitle does not exist (see https://psalm.dev/022)
UndefinedClass: src/Generator/CodeGeneratorAbstract.php#L115
src/Generator/CodeGeneratorAbstract.php:115:36: UndefinedClass: Class, interface or enum named PSX\Schema\Type\UnionType does not exist (see https://psalm.dev/019)