File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed
src/Glpi/Api/HL/Controller Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -721,7 +721,24 @@ public static function getRawKnownSchemas(): array
721721 - 4: Refused
722722 EOT ,
723723 ],
724- 'approval_followup ' => self ::getDropdownTypeSchema (class: ITILFollowup::class, full_schema: 'Followup ' ) + ['x-version-introduced ' => '2.1.0 ' ],
724+ 'approval_followup ' => [
725+ 'x-version-introduced ' => '2.1.0 ' ,
726+ 'type ' => Doc \Schema::TYPE_OBJECT ,
727+ 'x-field ' => ITILFollowup::getForeignKeyField (),
728+ 'x-itemtype ' => ITILFollowup::class,
729+ 'x-join ' => [
730+ 'table ' => ITILFollowup::getTable (),
731+ 'fkey ' => ITILFollowup::getForeignKeyField (),
732+ 'field ' => 'id ' ,
733+ ],
734+ 'properties ' => [
735+ 'id ' => [
736+ 'type ' => Doc \Schema::TYPE_INTEGER ,
737+ 'format ' => Doc \Schema::FORMAT_INTEGER_INT64 ,
738+ 'readOnly ' => true ,
739+ ],
740+ ],
741+ ],
725742 'date_creation ' => [
726743 'x-version-introduced ' => '2.1.0 ' ,
727744 'type ' => Doc \Schema::TYPE_STRING ,
You can’t perform that action at this time.
0 commit comments