hashgraph / hashgraph/guardian

Tool SubSchema Fields are Not Successfully Parsed on Tool Import

Open
#6,780 0 comments 0 reactions 1 assignee Claimed by @ihar-tsykala View on GitHub
Dominant language
TypeScript
Stars
146
Forks
186
Avg merge
2d 20h
Merged PRs (30d)
126

Description

## Bug Summary
Subschema field is parsed as null on Tool Import

Description
When importing a Tool such as Tool 14, that also has dependencies on other Tools, and when its schema includes a subschema field type that is supposed to reference a dependency tool schema, the field is imported as Null. The subschema field also cannot be linked since the reference subschema dropdown only populates with the current tool's schemas.

## Steps to Reporduce
1. Import Tool 14
2. Import Tool dependencies Tools 13 (dependencies 03, 04, 05), Tool 06, Tool 05 (dependency Tool 07)
3. Link dependencies to published tools on local instance
4. Proceed with Import
5. Error displayed
6. Navigate to the Tool schema that threw the error
7. Inspect the field (which appears as String)

## Expected Result
- expect to import tool without errors
- expect subschema field to reference schemas from other tool via the drop down

## Actual Result
- error displayed
- cannot map subschema field type to reference schema's from other tools

## Artifacts
![](https://hashgraph.storiesonboard.com/dl/zcu6oDfIy_FTYDojUddBhg)
![](https://hashgraph.storiesonboard.com/dl/Et-Fa-ctQwAmtTojUdpoMg)

Image
Image

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.