All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- [FIXED] servers variables in generated OpenAPI specs should include non-standard server port as part of server host variable
- [FIXED] servers variables in generated OpenAPI specs should include non-standard server port as part of server host variable
- [FIXED] rename project from
bi-service-doc
toserviser-doc
- [FIXED] fix tests
- [FIXED] update
json-schema-faker
- [FIXED] update frontend
redoc
package - [ADDED] hookup
fakerjs
package tojson-schema-faker
so its possible to define more accurate code examples
- [FIXED]
Redoc
upgraded to2.0.0-alpha.38
- [FIXED] documentation updates
- [FIXED] dont consider http application base path a candidate for operation tags - aka. the base url path the http application is running at should be excluded from http operation endpoint
- [FIXED] include custom
x-app
(application name) property in generated OpenAPI specification info object
- [FIXED] Doc http app should not abort its initialization when generation of route
x-code-samples
fails. The failure should be handled gracefully. - [FIXED] consider custom json-schema
media-type
format (which bi-service introduced inv1.6.2
) when generatingx-code-samples
- [FIXED] semantic error - was trying to access a property path which might not exist while generating
x-code-samples
- [FIXED] json-schema-faker was being given incorrect property schema value
- [CHANGED] replaced
swagger-ui
fronted withReDoc
modern frontend created with React - [CHANGED] upgraded to specification
OpenAPI v3.0.0
- [ADDED]
readme
configuration section which allows to append additional hand-written documentation to the begining of generated API documentation - [ADDED] OpenAPI
x-code-samples
generation forJavaScript
&Curl
- [FIXED] previous broken release
- [FIXED] previous broken release
- [FIXED]
path
url portion ofbaseUrl
should remain as a part of base url and NOT be extracted out to individual relative endpoint urls.
- [ADDED] front-end: searchbox for filtering API operations
- [ADDED] front-end: basic support for
patternProperties
schema keyword - [FIXED] front-end: BASE URL should contain host
- [FIXED] front-end: url link now dynamically changes when we switch to different API version so the URL dirrectly link to the API version we are currently at
- [FIXED] updated bi-service private API calls to conform with the new
[email protected]
release
- [FIXED] throw proper error with useful error message when no validator with a specified identifier is not found
- [FIXED] generated JSON specification should include valid list of supported schemes (protocols)
- [ADDED] support for AMQP route specs generation
- [FIXED] - missing front-end image files
- [FIXED] - updated front-end scripts & css styles
- [FIXED] - compatibility with upcomming [email protected] - regarding common
App
interface - [DEPRECATED] -
sdkMethodName
property -x-sdkMethodName
should be used instead
- [FIXED] - swagger root options
host
&basePath
were being incorrectly assembled when an app'sbaseUrl
included path endpoint in addition to protocol + host
- [ADDED] - GET api/v1.0/specs/:version endpoint
- [FIXED] -
ajv2swagger
package has been renamed tobi-ajv2swagger
- [FIXED] -
bi-config
related failure whenbi-service-doc
package is installed globally (project's localbi-config
package must be used rather the global module)
- [FIXED] -
bi-config
initialization should happen before a service module is loaded
[CHANGED] - requires bi-service
>= 1.0.0-alpha
which dropped support for json-inspector and replaced it with ajv validator
[FIXED] - use bi-config's public interface rather than hacking around its internal (which was necessary in earlier versions) [FIXED] - generated swagger json spec should not contain duplicate parameter names in Array collections
[FIXED] - correct npm project (module) name was not being coerced (thus the shell executable failed to generated JSON specs)
[FIXED] - AppManager.buildDoc
should emit build-app
event
[FIXED] - set default express bodyParser options
[FIXED] - allow to generate docs for all apps including CLIs & Docs (not just dirrect instances of App)
[FIXED] - host
property of generated swagger json should NOT include a protocol
[FIXED] - req parameter duplicates should be filtered out out of swagger json specs
[CHANGED] - minimum required dependency of [email protected]
[FIXED] - cli - a failure with projects which contain symlinked dependencies [FIXED] - cli - misleading & incorrect error was being presented to an user when any module (file) other than the main app entry file was not found
[FIXED] - global variable leak - caused overwritings generated swagger specs object for bi-service apps
[FIXED] - It should be ensured that all parameters which are part of an url, are described (should be included in parameters
array)
[ADDED] - dynamic url path segments sorting - ensures the swagger json output is deterministic in that regard
[ADDED] - bi-service-doc
shell script
[ADDED] - custom sdkMethodName
to swagger schema
[CHANGED] - the API this module exports to an user has been changed. A Doc
app is no longer direct instance of App
but rather Doc
(expected to be compatible with bi-service
>0.10.x)
[FIXED] - failure when building inplace validator schema in form of a function
[ADDED] - request "header" parameters support
[CHANGED] - route response descriptors come in form of an array for each response code since [email protected], the array is merged into one response schema. This allows a route to describe multiple "variations" of same error response (eg. all api codes the route responds with).
[FIXED] - don't overwrite default json-inspector
options as they should be same as for request parameters validators
[FIXED] - the module requires [email protected]
or higher
[FIXED] - missing support for function
schema definition & schema references. Response schemas share common context with request validator definitions.
[FIXED] - swagger specification inconsistencies
[FIXED] - additionalProperties
of object were not being rendered for response bodies
[FIXED] - undeclared variables
[CHANGED] - rename the module from bi-docs
to bi-service-doc
[ADDED] - makes from this module a plugin which registers itself ones required to the application (since [email protected]
)
[FIXED] - filter out regex pattern in express url segments Eg: /url/:id(\d+) => /url/:id
[FIXED] - bugs in validator build logic causing the swagger schema build process to fail completely
[FIXED] - incorrect url tagging algorithm
[REMOVED] - unused semver
module
[FIXED] - swagger schema was being builded too soon as not all valdators were not registered yet
[FIXED] - incorrect nonexistent module json-inspector
required instead of bi-json-inspector
[ADDED] - first "stable" release