Commit Graph

278 Commits

Author SHA1 Message Date
dependabot[bot]
1c2fce757d
Bump handlebars from 4.0.12 to 4.3.0
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.0.12 to 4.3.0.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/wycats/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.0.12...v4.3.0)

Signed-off-by: dependabot[bot] <support@github.com>
2019-12-27 01:21:48 +00:00
Kam Low
c7233ecee5
Merge pull request #190 from tommyschnabel/master
Fixed #141 by adding support for $ref based circular reference support
2019-06-29 11:06:28 +02:00
Tommy Schnabel
d9d15f5903 Fixed #141 by adding support for $ref based circular reference support 2019-06-28 13:37:28 -04:00
Kam Low
1feb924e8d
Merge pull request #185 from huttotw/master
Remove cache in resolve references since files change often
2019-04-09 12:37:31 +02:00
Trevor Hutto
17e9f0c8c0 fix conflicts 2019-04-08 14:33:32 -04:00
Kam Low
f747888674
Update common.js 2019-04-08 20:07:42 +02:00
Kam Low
a37e50a86d
Merge pull request #186 from elyesbenabdelkader/fix-display-response-examples
Fix displaying a response examples
2019-04-08 20:06:03 +02:00
Elyes Ben Abdelkader
9c3141ccae Fix typo 2019-04-05 09:41:26 +02:00
Elyes Ben Abdelkader
44fa1e48d1 Fix displaying a response examples
According to the OpenAPI v2.0 Specifications*, response examples have to be defined
in a 'examples' field, not 'example'. Furthermore, an example must be an Example Object**.

* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#response-object
** https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#example-object
2019-04-04 15:24:41 +02:00
Trevor Hutto
b0b88a1cf6 remove cache in resolve references since files change often 2019-03-06 10:34:02 -05:00
Kam Low
378f89ef85 Release 1.0.7 2019-01-30 10:47:37 +01:00
Kam Low
46dc681b44
Merge pull request #182 from paulotokimatu/fix/code-block-overflow
Fixed overflow of code blocks
2019-01-30 10:45:24 +01:00
Kam Low
21252e92de
Merge pull request #160 from lionelvillard/yaml
yaml example support
2019-01-30 10:43:51 +01:00
Kam Low
2155a62db6
Merge pull request #177 from lionelvillard/fixhref
fix href with multiple dots
2019-01-30 10:43:11 +01:00
Kam Low
19426d7103
Merge pull request #180 from kellycampbell/fix_href_colonchar
Translate : to - in hrefs
2019-01-30 10:42:41 +01:00
paulotokimatu
865fd30327 Fixed overflow of code blocks 2019-01-29 21:16:47 -06:00
Kelly Campbell
4c6b529b52 Translate : to - in hrefs
Fixes #179
2019-01-09 11:18:16 -05:00
Lionel Villard
a37005d564 yaml example support 2018-11-28 21:05:15 -05:00
Lionel Villard
c54bf1ec31 fix href with multiple dots 2018-11-28 20:22:55 -05:00
Kam Low
220c048b36
Merge pull request #163 from craigbarrau/patch-1
Fixed docs from referencing an old file that does not exist in this repo
2018-11-28 12:02:36 +01:00
Kam Low
af8f5efbd3
Merge pull request #170 from martinxxD/dev-fix-depreciated-warning
Fix deprecated $header-sizes warning
2018-11-28 12:01:49 +01:00
Kam Low
fe65455487
Merge pull request #171 from yyamano/issue-165
Resolve app dir path to fix #165.
2018-11-28 12:01:01 +01:00
Kam Low
d227ffd3f2
Merge pull request #169 from martinxxD/dev-update-dependencies
Update dependencies & fix tests
2018-11-28 12:00:21 +01:00
Yuji Yamano
916baec7a2 Resolve app dir path to fix #165. 2018-10-19 13:35:59 +09:00
Martin
ef946b73de Fix deprecated $header-sizes warning
This commit fixes the following warning:
```bash
Running "sass:scss" (sass) task
WARNING: Note, that $header-sizes has been replaced with $header-styles. $header-sizes still works, but it is going to be depreciated.
         on line 77 of app/vendor/foundation/scss/typography/_base.scss, in function `build_from_header-sizes`
         from line 91 of app/vendor/foundation/scss/typography/_base.scss
         from line 10 of app/vendor/foundation/scss/typography/_typography.scss
         from line 31 of app/vendor/foundation/scss/foundation.scss
         from line 7 of app/stylesheets/spectacle.scss
```
2018-10-16 07:15:39 -07:00
Martin
1237e04292 Update dependencies & fix tests
Updates in detail:
cheerio                   ^0.19.0  → ^1.0.0-rc.2
clarify                   ^1.0.5  →       ^2.1.0
foundation-sites          ^6.4.1  →  ^6.5.0-rc.4
grunt-contrib-clean       ^1.1.0  →       ^2.0.0
grunt-contrib-connect     ^1.0.2  →       ^2.0.0
grunt-contrib-cssmin      ^2.2.1  →       ^3.0.0
grunt-contrib-jshint      ^1.1.0  →       ^2.0.0
grunt-contrib-uglify      ^3.3.0  →       ^4.0.0
json-refs                 ^2.1.6  →      ^3.0.12
marked                    ^0.3.5  →       ^0.5.1
sync-request              ^4.1.0  →       ^6.0.0
tmp                       0.0.31  →       0.0.33
trace                     ^1.1.0  →       ^3.1.0
chai                      ^3.5.0  →       ^4.2.0
mocha                     ^3.5.3  →       ^5.2.0
bluebird                  ^3.4.7  →       ^3.5.2
grunt-compile-handlebars  ^2.0.0  →       ^2.0.2
grunt-sass                ^3.0.0  →       ^3.0.2
handlebars                ^4.0.5  →      ^4.0.12
highlight.js              ^9.1.0  →      ^9.13.0
js-yaml                   ^3.8.2  →      ^3.12.0
lodash                    ^4.2.1  →     ^4.17.11
node-sass                 ^4.9.0  →       ^4.9.4
2018-10-16 07:09:27 -07:00
Kam Low
b0c1a52223 Release 1.0.6 2018-09-20 00:24:12 +02:00
Kam Low
8026b600bf Update LICENCE 2018-09-20 00:23:17 +02:00
Craig Barr
325ba4aace
Fixed README that references an old file that does not exist in this repository
Changed to reference `cheese.yml`

To prevent the following undesirable outcome for anyone playing along at home
```
spectacle -d -l test/fixtures/cheese.png test/fixtures/cheese.json
fs.js:663
  return binding.open(pathModule.toNamespacedPath(path),
                 ^

Error: ENOENT: no such file or directory, open '/usr/local/lib/node_modules/spectacle-docs/test/fixtures/cheese.json'
  at Object.fs.openSync (fs.js:663:18)
  at Object.fs.readFileSync (fs.js:568:33)
  at Object.fetchReference (/usr/local/lib/node_modules/spectacle-docs/app/lib/resolve-references.js:66:16)
  at loadData (/usr/local/lib/node_modules/spectacle-docs/index.js:55:76)
  at module.exports (/usr/local/lib/node_modules/spectacle-docs/index.js:59:70)
  at Object.<anonymous> (/usr/local/lib/node_modules/spectacle-docs/bin/spectacle.js:39:1)
  at Module._compile (module.js:660:30)
  at Object.Module._extensions..js (module.js:671:10)
  at Module.load (module.js:573:32)
  at tryModuleLoad (module.js:513:12)
  at Function.Module._load (module.js:505:3)
  at Function.Module.runMain (module.js:701:10)
  at startup (bootstrap_node.js:193:16)
  at bootstrap_node.js:617:3
```
2018-08-22 04:53:18 +10:00
Kam Low
624f6811c7 Release 1.0.5 2018-07-02 02:25:50 +02:00
Kam Low
c448c63485 Update Grunt dependencies 2018-07-02 02:25:14 +02:00
Kam Low
775437299c Release 1.0.4 2018-07-01 21:46:32 +02:00
Kam Low
52dca06c45 Update to grunt-saas 3.0 #156 2018-07-01 21:43:18 +02:00
Kam Low
2c48b61c10
Merge pull request #157 from TheIDCo-ScottLeckie/master
Works around grunt-sass dependency problem
2018-07-01 12:19:11 +02:00
Scott
5f9a3b5b21
Works around grunt-sass dependency problem
grunt-sass is now at 3.0, which isn't compatible with spectacle. Forced the dependency to be 2.1.0
2018-06-30 00:36:03 +01:00
Kam Low
31d956ed52
Merge pull request #155 from patrickboesch/change-property-type-position
Change position of type in request parameters
2018-06-27 11:24:24 +02:00
Kam Low
4f6128d57b
Merge pull request #154 from patrickboesch/x-spectacle-topics_advanced
Allow x-spectacle-topic and security-definition to have examples
2018-06-27 11:23:40 +02:00
Patrick Bösch
2d8fee347c Change position of type in request parameters 2018-06-27 08:53:11 +02:00
Patrick Bösch
f363b951fd Allow x-spectacle-topic to have examples
Also add exmaples to security-definition
2018-06-27 08:24:52 +02:00
Kam Low
4dadab3b4e
Merge pull request #152 from ptte/spectacle-docker-file-update
Update dockerfile to work with new baseimage
2018-06-12 15:15:21 +02:00
Patrik Ring
43dbba68e5
Update dockerfile to work with new baseimage
Base a new docker file off of node:8-alpine seems to work well with newer sass versions which was an issue with the older alpine images. Adding in python for gyp to work and --unsafe-perm because npm was complaining a lot about it.

Fixing issues with running `sourcey/spectacle` docker file generating below errors:
```TypeError: Cannot read property '$ref' of null
    at replaceRefs (/usr/local/lib/node_modules/spectacle-docs/app/lib/resolve-references.js:169:11)
    at replaceRefs (/usr/local/lib/node_modules/spectacle-docs/app/lib/resolve-references.js:189:5)```
2018-06-11 18:00:50 -04:00
Kam
35387af24d Release 1.0.3 2018-04-15 18:20:30 +02:00
Kam Low
1b8b058a30
Merge pull request #135 from schursin/issue-119
support description for enum definitions
2018-04-15 18:18:16 +02:00
Kam Low
6c039f5077
Merge pull request #138 from noliran/support-for-resource-embedding
Added support for resource embedding
2018-04-15 18:16:50 +02:00
Kam Low
b3bb546fd6
Merge pull request #137 from noliran/issue-98
Add support for displaying nested objects and arrays in definitions
2018-04-15 18:16:00 +02:00
Noam Liran
016e5ef81d Added support for resource embedding 2018-04-12 21:40:50 +03:00
Noam Liran
9d0d3d1f8b Add support for displaying nested objects and arrays in definitions 2018-04-12 21:28:40 +03:00
Sergey Chursin
9f8e407967 support description for enum definitions 2018-03-29 23:10:16 +03:00
Kam Low
7f0931703f
Merge pull request #132 from schursin/master
Add live reload support to development mode
2018-03-23 17:41:16 +01:00
Kam Low
6b03e34b3b
Merge pull request #133 from schursin/issue-67
schema syntax errors reporting in development mode
2018-03-23 15:34:35 +01:00