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: usageguide.md
+3-2
Original file line number
Diff line number
Diff line change
@@ -118,7 +118,8 @@ validate: {
118
118
```
119
119
__NOTE: the plugin reuses "definition models" these describe each JSON object use by an API i.e. a "user". This feature
120
120
was added to reduce the size of the JSON. The reuse of models can cause names to be reused as well. Please switch
121
-
`options.reuseDefinitions` to `false` if you are nameing your JOI objects.__
121
+
`options.reuseDefinitions` to `false` if you are naming your JOI objects. By default objects are named in a "Model #"
122
+
format. To use the `label`, specify `options.definitionPrefix` as `useLabel`.__
122
123
123
124
124
125
@@ -744,4 +745,4 @@ There are a number of examples of different uses of `hapi-swagger` in the exampl
744
745
Both these example use a custom HTML page
745
746
* [`be-more-hapi`](https://github.com/glennjones/be-more-hapi) - talk from Async.js on the October 2013 - old `hapi-swagger` example project, but keep update
746
747
* [`hapi-token-docs`](https://github.com/glennjones/hapi-token-docs) - A example site using HAPI, JWT tokens and swagger documentation
747
-
* [`time-to-be-hapi`](https://github.com/glennjones/time-to-be-hapi) - Londonjs talk March 2016 has many example uses of HAPI and one using `hapi-swagger`
748
+
* [`time-to-be-hapi`](https://github.com/glennjones/time-to-be-hapi) - Londonjs talk March 2016 has many example uses of HAPI and one using `hapi-swagger`
0 commit comments