Stoobly / stoobly-agent

Record, mock, and test HTTP/HTTPS requests. CLI agent for Stoobly.
Other
6 stars 0 forks source link

Missing parent-child relationships between response_param_name and body_param_name resources + missing type values #223

Closed tylerbhadra closed 1 month ago

tylerbhadra commented 2 months ago

The hierarchical, parent-child relationships between response_param_name and body_param_name resources are not being preserved, and the Type values in the response schema do not appear. Instead, all resources are enumerated in one long list and traversable responses are not expandable.

Example Response Schema:

Screen Shot 2024-04-25 at 5 38 09 PM

The types for each of the above response_param_name resources from top to bottom should be String, Integer, Array, and Hash.

The parent-child relationship should look like this:

"DeveloperProducts": [
  "DeveloperproductsElement": {
    "Description": "String",
    "DeveloperProductId": "Integer",
    ...
  },
  ...
]

Both DeveloperProducts and DeveloperproductsElement are traversable and should be expandable in the UI to reflect this.

This issue is likely related to the <component_name>_id (i.e. the id of the parent resource) not being sent in create requests. Changes to SchemaBuilder may be necessary so that the correct parent id values are included in built schemas and accessible by the endpoints_import_service.