Граф коммитов

19 Коммитов

Автор SHA1 Сообщение Дата
Jeremy Whitlock 6d833908ac Fix bug in reference resolution
Reference resolution is a two step process: Resolve remotes and then
locals.  The problem is there was a bug where this wasn't working as
expected and so the second pass, all references were resolved again.

Fixes #123
2017-12-01 20:42:48 -07:00
Jeremy Whitlock 85ebf329c6 Update dependencies
Fixes #141
2017-07-07 22:20:31 -06:00
Jeremy Whitlock c057f210de Pass through `params` and `schemaId` for validation errors
We've always normalized JSON Schema errors provided by z-schema but this
is unnecessary and in some cases not wanted.  This change will no longer
remove the `params` property of a validation error and will only remove
the `schemaId` property if its value is `undefined`.

Fixes #61
2016-02-13 11:54:20 -07:00
Jeremy Whitlock ba2598ced4 Upgrade json-refs for upstream bug fixes 2016-02-02 16:59:55 -07:00
Jeremy Whitlock 14d0fb4b12 Removed `Parameter#getSchema` and renamed `Parameter.computedSchema` to `Parameter.schema`
Also made various jsdoc changes so that the generated `docs/API.md`
linked properly and read better.
2016-01-11 23:28:03 -07:00
Jeremy Whitlock aa776ef1ac Minor refactoring for jsdoc and object properties 2016-01-11 15:38:20 -07:00
Jeremy Whitlock 6092438bba Removed plugin support
Fixes #55
2016-01-11 10:21:42 -07:00
Jeremy Whitlock 52d4c431a5 Consistency changes per #52
Update `Operation#validateResponse` and `Response#validateResponse`
consistent with `Operation#validateRequest` and
`Response#validateRequest` respectively by wrapping all arguments in an
object so we can change things without breaking the API.

Fixes #52
2016-01-07 12:38:03 -07:00
Jeremy Whitlock 13f1c4ccfd Fix bug with loading a relative document with options.relativeBase
While working on #50 I ran into an issue where the initial read of the
Swagger document would not use the `options.jsonRefs.relativeBase`.

Fixes #50
2016-01-07 11:27:52 -07:00
Jeremy Whitlock 0668ca83b0 Cleaned up the jsdoc/API documentation
Fixes #49
2016-01-07 10:31:24 -07:00
Jeremy Whitlock 1a3102625c Removed callback support
Fixes #51
2015-12-29 11:04:25 -07:00
Jeremy Whitlock 56ce69aa89 Namespaced the options passed to json-refs 2015-08-12 09:54:50 -06:00
Jeremy Whitlock 135ace045e Update build process and dependencies for size
Fixes #4
2015-08-03 09:10:42 -06:00
Jeremy Whitlock 371d1a2645 First pass at wiring up validation APIs
* Current validation only does JSON Schema validation
2015-06-11 10:45:45 -06:00
Jeremy Whitlock e9145eaa7b Updated type constructors to indicate that they should not be called directly 2015-05-26 15:51:40 -06:00
Jeremy Whitlock 6b573fe79c Minor change to API documentation 2015-05-26 15:21:15 -06:00
Jeremy Whitlock 24147b5fc7 First pass at the Operation and Parameter types 2015-05-26 11:45:53 -06:00
Jeremy Whitlock c1a8bf1dba Added support for loading a Swagger document 2015-05-14 16:45:17 -06:00
Jeremy Whitlock 6ac8fc8e21 Initial project structure. 2015-04-09 19:24:39 -06:00