Skip to content

Commit

Permalink
Api liquid: add filter parameters (#1650)
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrze committed Sep 6, 2023
1 parent 3e490e4 commit aa496b0
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions app/views/partials/api/liquid/platformos_filters.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,28 @@
{
"category": "string",
"deprecated": {{ deprecated | json }},
"deprecation_reason": "{{item.deprecated | join: ', '}}",
"deprecation_reason": "{{ item.deprecated | join: ', ' }}",
"description": "",
"summary": "{{item.decription | join: ', ' | default: default_description}}",
"syntax": "{{ first_param_type }} | {{item.name}}",
"name": "{{item.name}}",
"summary": "{{ item.decription | join: ', ' | default: default_description }}",
"syntax": "{{ first_param_type }} | {{ item.name }}",
"name": "{{ item.name }}",
"aliases": {{ item.aliases | json }},
"parameters": [
{% for param in item.params %}
{
"description": {{ param.description | json }},
"name": {{ param.name | json }},
"required": false,
"types": {{ param.types | json }}
}{% unless forloop.last %},{% endunless %}
{% endfor %}
],
"return_type": [
{% for return_type in item.returns %}
{
"type": "{{ return_type.types | join: ', ' | downcase }}",
"name": "",
"description": "{{return_type.description | replace: '"', '\"' | replace: "
"description": "{{ return_type.description | replace: '"', '\"' | replace: "
", "\n" }}",
"array_value": ""
}{% unless forloop.last %},{% endunless %}
Expand Down

0 comments on commit aa496b0

Please sign in to comment.