Commit Graph

147 Commits

Author SHA1 Message Date
Ben Firshman
2453ffb11b
Add option to hide hostname in method definition
This allows ReDoc to be used for self-hosted tools where the
hostname may not be known.
2016-11-01 11:44:22 -07:00
Roman Hotsiy
1e152f96f0
fix build 2016-10-31 21:09:55 +02:00
Roman Hotsiy
9e7ba0ea8d
Deprecate x-traitTag 2016-10-31 12:32:03 +02:00
Roman Hotsiy
9389d7dc15
Fix unit tests 2016-10-31 10:15:04 +02:00
Roman Hotsiy
a94afe5f2d
Fix error handler 2016-10-31 09:16:39 +02:00
Roman Hotsiy
c39166266c
Refactor markdown renderer 2016-10-30 17:56:24 +02:00
Roman Hotsiy
44cd7784aa
Redoc error handler refactor 2016-10-30 17:55:36 +02:00
Roman Hotsiy
c95755718f
Get rid of facade/lang deps (fixes #129) 2016-10-29 12:31:56 +03:00
Roman Hotsiy
17e7bf9fd8
Refactor + minor fixes/optimizations 2016-10-23 20:18:42 +03:00
Roman Hotsiy
5597a58846
Do spec load after bootstrap 2016-10-14 11:44:18 +03:00
Roman Hotsiy
0678c4c595
implemented x-extendedDiscriminator to workaround name clashes in big specs 2016-09-28 09:36:21 +03:00
Roman Hotsiy
511415ca06
Fix default hostname #108 2016-09-12 23:54:35 +03:00
LeFnord
719dfbfa13 makes basePath optional 2016-09-06 10:52:31 +02:00
Roman Hotsiy
a14bde334b
Update to latest Angular RC.6 2016-09-02 23:18:43 +03:00
kedashoe
1f53d94053 give type "string" for pipe transforms 2016-08-31 11:23:06 -07:00
Roman Hotsiy
bff4b80845
Change the way discriminator is rendered 2016-08-30 13:51:14 +03:00
Roman Hotsiy
a65ecfa442
Move to webpack + AoT compilation 2016-08-28 21:46:10 +03:00
Roman Hotsiy
5efbd97f3e
Throttle scroll event 2016-08-22 12:18:56 +03:00
Roman Hotsiy
379870a1b3
Migrate to angular rc.5 2016-08-22 12:12:13 +03:00
Roman Hotsiy
2e9285e0f0
Revert markdown newlines to become breaks (related to SP-82) 2016-08-21 17:47:33 +03:00
Roman Hotsiy
eb0beda4e6
Fix markdown newlines to be gfm (fixes #82) 2016-08-21 10:17:41 +03:00
Roman Hotsiy
0b46186585
Render valid JSON in samples (quoted object keys) 2016-08-12 20:42:41 +03:00
Mike Stead
e8f090604c Validate that api scheme is used correctly 2016-08-01 10:26:10 +10:00
Mike Stead
190b5e79f6 Replace const with let to conform to coding style 2016-08-01 09:57:06 +10:00
Mike Stead
51965f94b5 Use api host if schema host is undefined 2016-08-01 09:46:34 +10:00
Roman Hotsiy
2872ffbcf9
If API supports both HTTP and HTTPS use HTTPS (fixes #72) 2016-07-26 14:51:59 +03:00
Roman Hotsiy
ae0b0f5f14
Deduce type value from validation keywords (fixes #71) 2016-07-26 14:07:25 +03:00
Roman Hotsiy
a5959bdf55
Refactor menu 2016-07-26 12:33:55 +03:00
Roman Hotsiy
205aa6211c
Pull markdown headers from description into side menu 2016-07-21 13:52:56 +03:00
Roman Hotsiy
dcd43e4fc6
Discriminator support for examples (fixes #65) 2016-07-15 17:43:01 +03:00
Roman Hotsiy
b22b8d2122
Refactor menu generation + handle methods without tags 2016-07-01 17:24:59 +03:00
Roman Hotsiy
53b4f55876 Refactor 2016-06-22 21:53:11 +03:00
Roman Hotsiy
1e97ea655e Refactor + perf optimizations 2016-06-22 19:13:57 +03:00
Roman Hotsiy
43a0872530 bypass sanitization for markdown 2016-06-22 12:45:03 +03:00
Roman Hotsiy
b65370c8ac Replace marked with remarkable 2016-06-22 12:42:24 +03:00
Roman Hotsiy
81701d3cb5 Fix json-schema-ref-parser importing 2016-06-15 23:33:57 +03:00
Roman Hotsiy
4f39ab9edc Add tslint 2016-06-13 20:54:24 +03:00
Roman Hotsiy
4498884f62 Migrate tests to TypeScript 2016-06-12 20:44:34 +03:00
Roman Hotsiy
3629e34a5a Continue migrating to TS 2016-06-06 19:32:20 +03:00
Roman Hotsiy
65bc8ef4e5 Migrate to Typescript (not finished yet) 2016-05-25 18:34:31 +03:00
Roman Hotsiy
8e6ce26ea6 use json-schema-ref-parser instead of SwaggerParser (fixes #46) 2016-05-20 20:13:39 +03:00
Roman Hotsiy
a272dacc95 Update angular to the rc 2016-05-05 11:05:02 +03:00
Roman Hotsiy
68ea1576a8 Fix periodical build fails: bundle prism.js to one file in correct order 2016-04-28 22:21:08 +03:00
Roman Hotsiy
823c0e60c5 Hanlde empty discriminator 2016-04-13 15:46:41 +03:00
Roman Hotsiy
6be67940f5 Fix markdown headings 2016-04-07 18:44:41 +03:00
Roman Hotsiy
6004fb0132 Add help messages for different types of parameters (fixes #26) 2016-03-28 00:54:43 +03:00
Roman Hotsiy
4ca1bdb5de updated angular2 to the latest beta (beta.12) 2016-03-27 18:25:46 +03:00
Roman Hotsiy
7d7877da2e Fix links with spaces 2016-03-09 20:44:20 +02:00
Roman Hotsiy
b87883607e Remove extra use-strict from browser-update 2016-02-19 17:10:11 +02:00
Roman Hotsiy
518321bfd4 Remove test flag from browser-update script 2016-02-18 15:05:45 +02:00
Roman Hotsiy
ce5306f1de Add unsupported browser bar (fixes #17) 2016-02-17 23:45:27 +02:00
Roman Hotsiy
a7913dec59 Upgrade to Angular 2.0.0-beta.3 + refactoring 2016-02-11 13:38:44 +02:00
Roman Hotsiy
db7f500ba0 IE10, IE9 Fixes
Use Reflect.metadate decorator instead of Class.parameters
Add fallback old syntax of flexbox
Other minor styling fixes
2016-02-10 13:19:50 +02:00
Roman Hotsiy
fa81187e10 Use operationId in links; fixes #14 2016-02-07 16:10:32 +02:00
Roman Hotsiy
fb7c2d160f Update tests 2016-02-01 14:47:45 +02:00
Roman Hotsiy
5fd757076c Add prism.js pipe 2016-01-31 19:37:35 +02:00
Roman Hotsiy
91e7af2b9d schema samples highlighting + collapsability 2016-01-23 23:35:44 +02:00
Roman Hotsiy
e67ab9c3ea Ensure markdown style is not applied to other elements 2016-01-23 12:15:09 +02:00
Roman Hotsiy
abfd363401 Temporal referencing fix 2016-01-16 23:25:12 +02:00
Roman Hotsiy
1fc5be3296 add error message 2016-01-15 22:43:18 +02:00
Roman Hotsiy
26b9bbc4ae Discriminator support 2016-01-09 22:37:01 +02:00
Roman Hotsiy
ba2571a446 Implemented findDerivedDefs routine 2016-01-09 22:37:01 +02:00
Roman Hotsiy
36c51dee3d Migrate tests to jasmine instead of macha (angular testing depends on jasmine) 2015-12-18 10:34:17 +02:00
Roman Hotsiy
832d018c1b Fix pipes and testcases 2015-12-14 18:31:17 +02:00
Roman Hotsiy
0a3bbdf0d1 Add error messages to Pipes 2015-12-14 18:14:14 +02:00
Roman Hotsiy
66aa19404a Update angular2 to the latest alpha + migrate 2015-12-14 17:20:40 +02:00
Roman Hotsiy
4af37bbd09 Add extra check to SchemaManager 2015-12-14 15:53:22 +02:00
Roman Hotsiy
baa7f27b9b statusCodeType fix 2015-12-12 18:30:13 +02:00
Roman Hotsiy
8d91427206 getMethodParams param semantic fix 2015-12-12 17:29:50 +02:00
Roman Hotsiy
5941973ecf minor update 2015-12-12 13:49:22 +02:00
Roman Hotsiy
9662ad7b1e Rename x-secondaryTag to x-traitTag 2015-12-01 00:29:01 +02:00
Roman Hotsiy
5446c573c5 Strip trailing / in api url 2015-11-29 17:14:18 +02:00
Roman Hotsiy
1681fb30a3 Fix 400 code type 2015-11-23 22:56:44 +02:00
Roman Hotsiy
16570984e0 carry out statusCodeType detection 2015-11-23 22:27:55 +02:00
Roman Hotsiy
a825d98a4d Filtered main tags from tags list 2015-11-17 01:34:13 +02:00
Roman Hotsiy
c0e4e6004a Fix lint error 2015-11-17 01:14:55 +02:00
Roman Hotsiy
540a050eaa Prepend api url to paths 2015-11-17 00:03:09 +02:00
Roman Gotsiy
ad47ce0788 Remove sanitize from marked conf 2015-11-04 22:57:58 +02:00
Roman Gotsiy
e4eec56dc9 Add path params resolving 2015-11-04 22:39:46 +02:00
Roman Gotsiy
31b44c407e Fix minor issue with menu building 2015-11-04 22:39:05 +02:00
Roman Gotsiy
6af3ab74ed move to fixed SwaggerParser fork 2015-11-04 22:30:06 +02:00
Roman Gotsiy
a4bae203f7 Minor schema manager fix 2015-10-30 11:48:36 +02:00
Roman Gotsiy
ab104f3d48 Handle x-secondaryTag in menu generation 2015-10-30 09:41:42 +02:00
Roman Gotsiy
40ec886f7d Group methods by tag; add tag and description 2015-10-28 23:22:12 +02:00
Roman Gotsiy
f8590bb4dd default es6 export + REDOC_COMPONENTS 2015-10-27 19:44:08 +02:00
Roman Gotsiy
c7bc6ff391 Add body sample to the right panel 2015-10-25 13:26:38 +02:00
Roman Gotsiy
90f304304c Display descriptions as GFM (closes #2) 2015-10-23 12:03:47 +03:00
Roman Gotsiy
753cfdb8fd Fix menu for cases method has more than one tag 2015-10-18 19:32:11 +03:00
Roman Gotsiy
094c42f07a Displaying in-body param schema 2015-10-17 21:13:14 +03:00
Roman Gotsiy
01990f265a Fixed parameters list issues 2015-10-10 16:49:10 +03:00
Roman Gotsiy
b30bf98402 Added simple paramaters list 2015-10-10 16:01:41 +03:00
Roman Gotsiy
a2fe4c9ca4 Moved duplicated code into base class/decorator 2015-10-09 23:19:35 +03:00
Roman Gotsiy
c8d04cc1fa Added extra linting options 2015-10-09 10:50:02 +03:00
Roman Gotsiy
cf7391e5d9 Renamed JsonPointer.dirName to baseName 2015-10-09 08:31:09 +03:00
Roman Gotsiy
3d1b529222 Added few basic components 2015-10-08 23:21:51 +03:00
Roman Gotsiy
aaa78d7c50 Added few utils methods 2015-10-08 20:16:45 +03:00
Roman Gotsiy
920c5c0497 Schema loader and Schema Info component 2015-10-07 12:52:57 +03:00