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
| examples | object[]| yes | - | AMF model for examples. It can be Payload shape, list of Payload shapes, or any shape. |
88
+
| mediaType | string | yes | - | Examples media type |
89
+
| typeName | string | no | - | Type (model) name for which examples are generated for. This is used by RAML to XML examples processor to wrap the example in type name. If missing this wrapping is omitted. |
90
+
| payloadId | string | no | - | Rendered payload ID (if any) to associate examples with the payload. |
91
+
|_renderedExamples | Example[]| no | - | Computed in a debouncer examples to render. |
92
+
| hasExamples | boolean | no | false | Computed value, true if there are examples to render. This value is reflected to attribute so the element can be hidden via CSS until examples are set. ```api-resource-example-document { display: none; } api-resource-example-document[has-examples] { display: block; } ```|
93
+
| table | boolean | no | - | If true it will display a table view instead of JSON code. `isJson` must be set to use this option. |
94
+
| isJson | boolean | no | false | Computed value, true if selected media type is application/json or equivalent. |
95
+
| noAuto | boolean | no | - | Configuration passed to example generator. When set the generator only returns examples that are defined in API file, without auto generating examples from object properties. |
96
+
| noActions | boolean | no | false | When set the actions row (copy, switch view type) is not rendered. |
97
+
| rawOnly | boolean | no | - | When set it only renders "raw" examples. To be used when media type context is unknown. This can happen if RAML type document is rendered outside method documentation (not in a request/response body when media type is known). |
|_hasLocalStorage | boolean | no | - | True if current environment has localStorage support. Chrome apps do not have localStorage property. |
101
+
|_renderReadOnly | boolean | no | false | If enabled then the example generator will be called with this option to add read-only properties to the example |
0 commit comments