Skip to content

Commit e14e81d

Browse files
authored
Merge pull request OAI#3789 from Bellangelo/fix-base-type-array-joining
Format Registry documentation is not accurate / well published
2 parents abd17f2 + b42916f commit e14e81d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

api/format.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ parent: API
1010
"description": "{{ page.description }}",
1111
"url": "{{ site.baseurl }}{{ page.url }}",
1212
"owner": "{{ page.owner }}",
13-
"base_type": "{{ page.base_type" }}"
13+
"base_type": ["{{ page.base_type | join: '", "' }}"]
1414
}{% unless forloop.last %},{% endunless %}
1515
{% endfor %}
1616
}

registries/_format/sf-integer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ issue:
44
description: structured fields integer as defined in [RFC8941]
55
source: https://www.rfc-editor.org/rfc/rfc8941#name-integers
66
source_label: RFC 8941
7-
base_type: integer, number
7+
base_type: [integer, number]
88
layout: default
99
---
1010

registry/format.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ Please raise a [Pull-Request](https://github.com/OAI/OpenAPI-Specification/pulls
2424

2525
|Value|Description|Type|Source|Deprecated|
2626
|---|---|----|---|---|----|
27-
{% for value in site.format %}| <a href="./{{ value.slug }}.html">{{ value.slug }}</a> | {{ value.description }} | {{ value.base_type }} | {% if value.source %}<a href="{{ value.source }}">{% if value.source_label %}{{value.source_label}}{% else %}Open{% endif %}</a>{% endif %} | {% if value.deprecated_note %}Yes{% else %}No{% endif %} |
27+
{% for value in site.format %}| <a href="./{{ value.slug }}.html">{{ value.slug }}</a> | {{ value.description }} | {{ value.base_type | join: ', ' }} | {% if value.source %}<a href="{{ value.source }}">{% if value.source_label %}{{value.source_label}}{% else %}Open{% endif %}</a>{% endif %} | {% if value.deprecated_note %}Yes{% else %}No{% endif %} |
2828
{% endfor %}
2929

0 commit comments

Comments
 (0)