You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/dsls/DSL-AshJsonApi.Resource.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,8 +67,8 @@ end
67
67
|[`paginated_includes`](#json_api-paginated_includes){: #json_api-paginated_includes } |`list(atom \| list(atom))`|`[]`| A list of relationship paths that can be paginated when included via the `included_page` query parameter. Each entry can be either an atom (for top-level relationships) or a list of atoms (for nested paths). |
68
68
|[`include_nil_values?`](#json_api-include_nil_values?){: #json_api-include_nil_values? } |`any`|| Whether or not to include properties for values that are nil in the JSON output |
69
69
|[`default_fields`](#json_api-default_fields){: #json_api-default_fields } |`list(atom)`|| The fields to include in the object if the `fields` query parameter does not specify. Defaults to all public |
70
-
|[`hide_fields`](#json_api-hide_fields){: #json_api-hide_fields } |`list(atom)`|`[]`| A list of fields to hide from the generated OpenAPI specification. Applies to attributes, relationships, calculations, and aggregates. |
71
-
|[`show_fields`](#json_api-show_fields){: #json_api-show_fields } |`list(atom)`|| A list of fields to show in the generated OpenAPI specification. If not specified, all public fields are shown except those in `hide_fields`. |
70
+
|[`hide_fields`](#json_api-hide_fields){: #json_api-hide_fields } |`list(atom)`|`[]`| A list of fields to hide from generated API specifications and JSON:API responses. Applies to attributes, relationships, calculations, and aggregates. |
71
+
|[`show_fields`](#json_api-show_fields){: #json_api-show_fields } |`list(atom)`|| A list of fields to show in generated API specifications and JSON:API responses. If not specified, all public fields are shown except those in `hide_fields`. |
72
72
|[`derive_sort?`](#json_api-derive_sort?){: #json_api-derive_sort? } |`boolean`|`true`| Whether or not to derive a sort parameter based on the sortable fields of the resource |
73
73
|[`derive_filter?`](#json_api-derive_filter?){: #json_api-derive_filter? } |`boolean`|`true`| Whether or not to derive a filter parameter based on the sortable fields of the resource |
74
74
|[`relationship_meta_in`](#json_api-relationship_meta_in){: #json_api-relationship_meta_in } |`keyword`|`[]`| Configures how incoming JSON:API`meta` keys on relationship resource identifiers map to join resource attributes for many_to_many relationship writes. Use together with `relationship_meta_out` for reads. Each relationship you want to support must declare both mappings explicitly. |
0 commit comments