-
Notifications
You must be signed in to change notification settings - Fork 66
Conversation
RAML 1.0 support
Changes Unknown when pulling 300fb41 on jy95:master into ** on mulesoft:master**. |
request-error-handler allow to select the message error language, why not use it for osprey ?
Changes Unknown when pulling 477210c on jy95:master into ** on mulesoft:master**. |
I just added the ability to select the message error language : It could be useful for translation |
Added defaultLanguage option in README.md
Changes Unknown when pulling e1a3268 on jy95:master into ** on mulesoft:master**. |
Update raml-1-parser to 1.1.17
Changes Unknown when pulling d65c972 on jy95:master into ** on mulesoft:master**. |
no comment about this PR ? |
Thanks for your contribution! Sorry for not getting back earlier. AFAICT from the README, it seems like "all options are overridable" already: https://github.com/mulesoft/osprey/blob/master/README.md#error-handler Have you tried passing an |
Yes but It was something like this : let ospreyOptions = {errorHandler: responder};
...
osprey.loadFile(path, ospreyOptions) and my custom responder : // Error Handler for osprey
function responder(req, res, error, stack) {
/* Custom respond logic here */
let message = "There have been validation errors";
res.status(400).json({
statusCode: 400,
message: message,
requestErrors: error || []
});
} In this version, passing the language argument is unclear. From what I have read : let ospreyOptions = {errorHandler: responder, defaultLanguage : "en"};
... |
Update raml-1-parser to 1.1.18
Changes Unknown when pulling 72895dd on jy95:master into ** on mulesoft:master**. |
1 similar comment
Changes Unknown when pulling 72895dd on jy95:master into ** on mulesoft:master**. |
I don't know if you have seen this but with the latest version of the parser, the code coverage that is at 94% with the currently with the latest osprey release. With my update : 97%. |
Not sure how coverall calculates that delta. The PATCH increment in the parser version of package.json shouldn't matter since we use carets: https://docs.npmjs.com/misc/semver#caret-ranges-123-025-004 |
... Do you see some bugfixes on the changelog of this parser that seems to increase the coverage then ? I say this because I also use several tools related to raml (for example : raml2html that rely on raml2obj that use raml-1-parser to 1.1.18) |
Changes Unknown when pulling 153f03b on jy95:master into ** on mulesoft:master**. |
Update out of date dependencies Seen on https://david-dm.org/mulesoft/osprey
Changes Unknown when pulling 4200543 on jy95:master into ** on mulesoft:master**. |
I was curious and I found out that 3 dependancies were out of date : I updated them to the latest stable version. Hope it will help you (tests passed). |
this PR will never be merged ? |
sorry @jy95, I haven't gotten around to review this before the latest release. I'll do my best to include it in the next patch release. Thanks for your contribution! |
Update raml-1-parser to 1.1.20
A new release of the parser is out : https://github.com/raml-org/raml-js-parser-2/releases/tag/1.1.20 . The greatest bug fix I see in this release : raml-org/raml-js-parser-2#713 |
Restore version with carret
Changes Unknown when pulling 618646f on jy95:master into ** on mulesoft:master**. |
Just to notice you, The parser has a new release : https://github.com/raml-org/raml-js-parser-2/releases/tag/1.1.21. It fixes this issue : raml-org/raml-js-parser-2#729 (the performance) |
I appreciate the update @jy95 however note that changing the PATCH version (i.e. 1.1.n) of raml-js-parser in the package.json of osprey won't do much since we're using caret range versioning. |
I know .. It was a notice (so do whatever you want with this ^^). What about the out-of-date dependancies I told you ? |
thanks for doing this. this can wait for the next release unless you tell me that something is wrong with one of the dependencies that requires immediate attention |
I don't think there is something wrong. The most critical is form-data that is in rc release .. |
Summary:
Why:
Probably fix a lot of parsing and another hidden issues XD
sources:
https://github.com/mulesoft-labs/osprey-router/releases/tag/v0.5.0
https://github.com/raml-org/raml-js-parser-2/releases/tag/1.1.19
https://david-dm.org/mulesoft/osprey
...