ash-project / ash_json_api

The JSON:API extension for the Ash Framework
https://hexdocs.pm/ash_json_api
MIT License
55 stars 41 forks source link

Embedded resource shows up as generic attribute of JSON map #180

Closed olivermt closed 1 month ago

olivermt commented 1 month ago

Describe the bug Adding an action mapping with an accepts [:location] where location is am embed shows a generic JSON object input:

{
  "data": {
    "attributes": {
      "location": {
        "additionalProp1": {}
      }
    },
    "id": "string",
    "relationships": {},
    "type": "cesium_asset"
  }
}

Expected behavior Embedded should show up as a nested json structure in the openapi spec

zachdaniel commented 1 month ago

Completed in 7e25b92b8bf78b22b2736ff1093eb6de698a4313