Commit Graph

47 Commits

Author SHA1 Message Date
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
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
paulotokimatu
865fd30327 Fixed overflow of code blocks 2019-01-29 21:16:47 -06:00
Lionel Villard
c54bf1ec31 fix href with multiple dots 2018-11-28 20:22:55 -05: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
c448c63485 Update Grunt dependencies 2018-07-02 02:25:14 +02:00
Kam Low
52dca06c45 Update to grunt-saas 3.0 #156 2018-07-01 21:43:18 +02:00
Kam
e11adc7f3a Fix #122 and #126 markdown rendering issues
Improve the way schema descriptions are rendered and linked
2018-03-21 09:09:34 +01:00
Kam
c78cf37606 Fix rendering of remote file references 2018-03-20 10:27:11 +01:00
Kam Low
d447d0b87e
Merge pull request #100 from zakhenry/feat/display-response-headers
Add response headers to output
2018-01-17 23:26:40 +01:00
Kam Low
43d5d1034f
Merge pull request #94 from svisser/fix_typos_cheese_store
Fixed typos in cheese store example
2017-11-13 13:31:45 +01:00
Zak Henry
a2f79bcd26 feat(Response Headers): Restores deprecated response header display with
foundation styling
2017-10-31 13:44:56 +00:00
Kam
674397cd61 Bump version 0.9.9 2017-09-27 17:55:17 +02:00
Simeon Visser
b01af35348 Fixed typos in cheese store example
Updated a few links to use HTTPS
2017-09-24 19:43:13 +01:00
Kam
4d34fb34b6 Fix #86 rendering page with indents on large screens 2017-09-01 16:15:29 +02:00
Kam
e58ae27299 Replace request-sync with sync-request #84 2017-08-08 22:48:03 +02:00
Kam
a557eb8c10 Update #51 fix exception with recursive references
Numerous style updates
Update foundation dependency
2017-08-04 16:04:35 +02:00
Kam
2da708a214 Fix #64 render produces/consumes per operation if defined 2017-08-01 15:11:52 +02:00
Kam
9343ca9dc8 Fix #65 parsing allOf definitions without type 2017-08-01 14:48:54 +02:00
Kam
5099cbffcb Fix #76 highlight code blocks in descriptions 2017-08-01 12:59:28 +02:00
Ryan Leonard
0bb25c0c73 Merged master into resolve-remote-references. 2017-04-03 12:12:22 -04:00
Kam Low
c9318b4c8d Update swagger examples in the demo 2017-04-02 14:30:24 +02:00
Kam Low
8366d85478 Make recursive example parsing more error tolerant 2017-04-02 12:56:16 +02:00
Kam Low
55b6e2c655 Fix #40 #47 render examples recursively
Fix #17 paths ordered as per swagger file
Remove json-stable-stringify dependency
2017-04-01 13:53:02 +02:00
Ryan Leonard
5c0528796a Added remote file lookup to the default schema tested. 2017-03-26 13:00:54 -04:00
Ryan Leonard
edccddb1c9 Integrated resolve-references into the preprocessor. 2017-03-17 10:48:32 -07:00
Kam Low
8c946991d6 Add perstore expanded example fixture
Fix #46 parsing `schema.$ref` in response block
2017-03-15 18:01:30 +01:00
Kam Low
c716b47d67 Fix #37 display example with type in schema 2017-03-01 16:02:33 +01:00
Kam Low
a032239bd1 Fix #38 POST bodies rendering as undefined
Improve request and response rendering
Improve layout styles for definition descriptions
2017-03-01 12:24:28 +01:00
Kam Low
ae471b22ff Fix #25 definition custom JSON examples 2017-01-04 21:07:30 +01:00
Kam
f8b9f0dfad Merge branch 'master' of github.com:sourcey/spectacle
Conflicts:
	public/index.html
2016-12-13 22:43:34 +01:00
Kam
fd0fc56b2e Fix #22 parse parameter descriptions
Prettify HTML output
2016-12-13 22:40:38 +01:00
Oskar Danielsson
5fb9f559e5 Removed root slash from links 2016-12-12 10:39:52 +01:00
Kam
b49ac7059f Add screenshot to README
Remove max-width CSS definition
2016-12-03 23:56:28 +01:00
Kam
947c6bbb9b Fix #12 response examples parsing schema types 2016-11-25 00:46:14 +01:00
Kam
5ed20126f0 Fix empty CSS #13
Revert foundation
2016-11-24 19:26:43 +01:00
Kam
e6f49e9602 Fix #10 relative paths not resolving 2016-11-24 17:49:25 +01:00
Kam
56f460e959 Replace compass dependency with libsass fix #9 and fix #3
Fix #8 and fix #4 definitions not parsing
Update foundation to v6.2.4 fix #1
2016-11-20 21:45:52 +01:00
Kam
26a31bf59b Fix minimal embedded doc generation 2016-06-04 18:02:57 +10:00
Kam
9aa4c62c7f Update documentation 2016-06-04 14:57:47 +10:00
Kam
cb176283f5 Add better global installation support 2016-02-07 16:17:18 +10:00
Kam
62532efa0a Add custom logo support
Improve documentation
2016-02-07 14:28:19 +10:00
Kam
8764b5332e Add sample Cheese Store API spec
Separate Foundation CSS file
Add responsive drawer layout
Fix rendering bugs
2016-01-18 22:30:34 +10:00
Kam
e974593503 Make CSS templates more modular 2016-01-17 11:22:34 +10:00
Kam
c0ec86786f Add config.js override option
Restructure SCSS to #spectacle scope
2016-01-16 21:29:20 +10:00
Kam
b1b7e9802c Handle empty host
Handle empty tag documentation
Update documentation
2016-01-15 16:50:15 +10:00
Kam
48905fae4a Initial commit 2016-01-12 20:38:19 +10:00