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
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,8 +68,7 @@ end
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
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 attributes, calculations, and aggregates to show in the JSON:API response and generated OpenAPI specification. If not specified, all public non-relationship fields are allowed in responses, and all public non-relationship fields except those in `hide_fields` are shown in the generated OpenAPI specification. |
72
-
|[`show_relationships`](#json_api-show_relationships){: #json_api-show_relationships } |`list(atom)`|| A list of relationships to show in the JSON:API response and generated OpenAPI specification. If not specified, all public relationships are allowed in responses, and all public relationships except those in `hide_fields` are shown in the generated OpenAPI specification. |
71
+
|[`show_fields`](#json_api-show_fields){: #json_api-show_fields } |`list(atom)`|| A list of fields to show in the JSON:API response and generated OpenAPI specification. Applies to attributes, relationships, calculations, and aggregates. If not specified, all public fields are allowed in responses, and all public fields except those in `hide_fields` are shown in the generated OpenAPI specification. |
73
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 |
74
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 |
75
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. |
Copy file name to clipboardExpand all lines: lib/ash_json_api/resource/resource.ex
+1-6Lines changed: 1 addition & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -566,12 +566,7 @@ defmodule AshJsonApi.Resource do
566
566
show_fields: [
567
567
type: {:list,:atom},
568
568
doc:
569
-
"A list of attributes, calculations, and aggregates to show in the JSON:API response and generated OpenAPI specification. If not specified, all public non-relationship fields are allowed in responses, and all public non-relationship fields except those in `hide_fields` are shown in the generated OpenAPI specification."
570
-
],
571
-
show_relationships: [
572
-
type: {:list,:atom},
573
-
doc:
574
-
"A list of relationships to show in the JSON:API response and generated OpenAPI specification. If not specified, all public relationships are allowed in responses, and all public relationships except those in `hide_fields` are shown in the generated OpenAPI specification."
569
+
"A list of fields to show in the JSON:API response and generated OpenAPI specification. Applies to attributes, relationships, calculations, and aggregates. If not specified, all public fields are allowed in responses, and all public fields except those in `hide_fields` are shown in the generated OpenAPI specification."
0 commit comments