Address review comments

This commit is contained in:
Richard van der Hoff 2024-04-24 11:07:06 +01:00
parent b020b1d5c0
commit f2ebb4003b
2 changed files with 4 additions and 5 deletions

View file

@ -52,7 +52,6 @@ paths:
might be and could be "alpha", semantically versioned, or arbitrary. might be and could be "alpha", semantically versioned, or arbitrary.
required: required:
- version - version
# TODO: TravisR - Make this render
additionalProperties: additionalProperties:
type: object type: object
title: Internationalised Policy title: Internationalised Policy

View file

@ -9,11 +9,11 @@
* `properties`: optional dictionary of the properties to list, each given as: * `properties`: optional dictionary of the properties to list, each given as:
`property_name` : `property_data` `property_name` : `property_data`
* `additionalProperties`: an OpenAPI schema document for additional properties * `additionalProperties`: a JSON Schema for additional properties on the
on the object. object.
* `patternProperties`: optional dictionary for properties with names adhering * `patternProperties`: optional dictionary for properties with names adhering
to a regex pattern. A map from regex pattern to OpenAPI schema document. to a regex pattern. A map from regex pattern to JSON Schema.
* `required`: optional array containing the names of required properties. * `required`: optional array containing the names of required properties.
In some cases (such as response body specifications) this isn't used, and In some cases (such as response body specifications) this isn't used, and
@ -69,7 +69,7 @@
<tr> <tr>
<td>&lt;Other properties&gt;</code></td> <td>&lt;Other properties&gt;</code></td>
<td><code>{{ partial "partials/property-type" .additionalProperties }}</code></td> <td><code>{{ partial "partials/property-type" .additionalProperties | safeHTML }}</code></td>
<td>{{ partial "partials/property-description" (dict "property" .additionalProperties) }}</td> <td>{{ partial "partials/property-description" (dict "property" .additionalProperties) }}</td>
</tr> </tr>
{{ end }} {{ end }}