-
I love that hapi-swagger f.x. can translate Joi.string().min(3).max(20) into {"type":"string","minimum":3,"maximum":20} in the swagger output. Very, very cool!
I would really like if Joi.string().reg…
mmc41 updated
8 years ago
-
Hi, I try to implement hapi-swagger lib, and to auto doc need add to router tags: ['api']. This make error. Becouse tags: joi.string() need change to tags: joi.string() || joi.array().
-
Getting:
```
September 16 22:59:13: express-openapi: validation errors [
{
"property": "instance.paths./provider.post.parameters[2]",
"message": "is not exactly one from ,",
"schema": …
notxt updated
8 years ago
-
``` js
const route = {
path: '/foo',
method: 'GET',
handler (req, reply) { reply([{foo: 'bar'}, {foo: 'foobar'}]) },
config: {
response: {
schema: Joi.array().items(
Joi.obje…
-
#### Context
- _hapi-swagger version_: 7.1.0
- _any other relevant information_:
#### What are you trying to achieve or the steps to reproduce ?
Describe your issue here, include example `route` or J…
-
Requirements for authentication in swagger spec
https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#securitySchemeObject
-
According to this standard for json (http://json-schema.org/latest/json-schema-validation.html#anchor26), which go-swagger follows, strings lengths should be validated with maxLength and minLength as …
-
Given the following model
```
const spawnPointSchema = Joi.object({
spawnPointId: Joi.string().required().description('The id of the spawn point'),
location: Joi.array()
.items(Jo…
-
The example mention "api-gateway" and link to "server-gateway", which points to nowhere.
It seems that api-gateway/server-gateway can walk through all the declared routes, and you can attach metadata…
-
When creating a schema for data returned from the API as follows:
``` js
const readObjectSchema = Joi.object().keys({
'userxarticle' : Joi.array().ordered(
Joi.number().description('u…