Skip to content

Commit

Permalink
improvement: fully specify filter in open api schema
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Jun 25, 2024
1 parent ca62a34 commit e38642e
Show file tree
Hide file tree
Showing 4 changed files with 441 additions and 125 deletions.
10 changes: 10 additions & 0 deletions documentation/topics/open-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,13 @@ To override any value in the OpenApi documentation you can use the `:modify_open
}
end
```

## Known issues/limitations

### Swagger UI

SwaggerUI does not properly render recursive types. This affects the examples and type documentation for the `filter` parameter especially.

### Redoc

Redoc does not show all available schemas in the sidebar. This means that some schemas that are referenced only but have no endpoints that refer to them are effectively un-discoverable without downloading the spec and hunting them down yourself.
1 change: 1 addition & 0 deletions lib/ash_json_api/json_schema/json_schema.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1097,6 +1097,7 @@ defmodule AshJsonApi.JsonSchema do

defp sortable?(_, _), do: false

@doc false
def embedded?({:array, resource_or_type}) do
embedded?(resource_or_type)
end
Expand Down
Loading

0 comments on commit e38642e

Please sign in to comment.