Code Monkey home page Code Monkey logo

osprey-router's People

Contributors

blakeembrey avatar brevity avatar greenkeeper[bot] avatar greenkeeperio-bot avatar jstoiko avatar jtblin avatar linusu avatar postatum avatar svc-scm avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

osprey-router's Issues

Dependency on github.com/blakeembrey/router#router-engine

This dependency blocks the ability to run in a CI/CD build, as a github style URLs attempt to git clone a dependency, instead of pulling from an NPM registry.

We have a closed environment that only has access to NPM packages through an Artifactory NPM registry.

The registry caches npmjs registry for anything not found in the private registry.
Any package can be published to the private registry.
Hitting URLs outside of the internal registry is not allowed.

An in-range update of raml-path-match is breaking the build 🚨


🚨 Reminder! Less than one month left to migrate your repositories over to Snyk before Greenkeeper says goodbye on June 3rd! πŸ’œ πŸššπŸ’¨ πŸ’š

Find out how to migrate to Snyk at greenkeeper.io


The dependency raml-path-match was updated from 2.3.0 to 2.3.1.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

raml-path-match is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Commits

The new version differs by 1 commits.

  • 6b2752f Update raml-sanitize, raml-validate

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Example

Hi, I've been looking at implementing part of the Facebook API which happens to have some of the same structure in terms of (base) resources as the one used in your example.

As a matter of fact: /{user_id} although here is used /{userId}, I would assume these are not considered equal forms of the same resource?

Also, in scope of using Osprey, I cannot use these kind of paths as they would simply resolve to a Cannot GET /v1/1234 (for example).

Any chance you could enlighten me on this, I would be grateful. Thing is, the example shown in README doesn't offer for much 'out-of-the-box' working hello world when there isn't a (api).raml file to go along with it. So either providing a inline version in README, or as a file, might be handy... either way, as it sits now, I can't get it to work/duplicate.

Schema inheritance

Every router should be able to inherit the schema from previous instances for routing params. This will be extremely useful when used with Osprey core to generate the parameter schemas from RAML. Subsequent routes would no longer need to have a schema defined when using this router. See mulesoft/osprey#74.

Edit 1: When a schema has already been defined for a parameter, we will compare the schema. If they differ, we should throw a runtime error on the server-side to fix the route.

Edit 2: This should be an option, enabled by default. Something like new Router({ mergeSchemas: false }).

Edit 3: It is valid to do this before a route execution. For example, when mounting we can check if it's an Osprey instance and pass the schemas through a property. However, this breaks down when using a combination of Express and Osprey routers, so need to decide which is the better trade-off.

An in-range update of array-flatten is breaking the build 🚨

The dependency array-flatten was updated from 2.1.1 to 2.1.2.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

array-flatten is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Release Notes for Readonly TypeScript Array

Fixed

  • Use ReadonlyArray for TypeScript interface to improve type assignability
Commits

The new version differs by 10 commits.

  • 04b45e7 2.1.2
  • c20ccb5 Test with latest node.js stable release
  • 825b0c7 Remove greenkeeper badge from README
  • b69be67 Use ReadonlyArray for TypeScript interface
  • 00e3dc6 Remove bower support
  • 54fbaa3 chore(package): update benchmarked to version 2.0.0 (#17)
  • fc434e6 Add Greenkeeper badge 🌴 (#16)
  • e45559d chore(package): update benchmarked to version 1.0.0 (#14)
  • 8f7a398 chore(package): update standard to version 10.0.0 (#13)
  • 5f8285e chore(package): update standard to version 9.0.0 (#12)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of raml-path-match is breaking the build 🚨

The dependency raml-path-match was updated from 2.2.0 to 2.2.1.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

raml-path-match is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Commits

The new version differs by 7 commits.

  • 5fa125a 2.2.1
  • 9fdee7f package lock
  • e259135 Merge pull request #5 from mulesoft-labs/greenkeeper/standard-12.0.1
  • c0ef022 Sync package-lock
  • 37138b4 Merge branch 'develop' into greenkeeper/standard-12.0.1
  • a1227c6 Update travis node version
  • 5c5f467 chore(package): update standard to version 12.0.1

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Cut a new version

Hello, would you be able to cut a new version of this lib and bump the dep in osprey itself? I need a release that has PR #2 in it :)

Cannot find module 'router/engine' error when running with osprey

I was running [email protected] node_modules/osprey with "express": "^4.12.0" on the latest version of nodeJS (v0.12.0).

https://github.com/jewelsjacobs/raml-osprey-api-designer/blob/master/routes/documentation.js#L85

I think this might be caused by a bug in https://github.com/pillarjs/router which references a path that does not resolve to a file or module. I went ahead and logged an issue in that repo: pillarjs/router#16

module.js:338
    throw err;
          ^
Error: Cannot find module 'router/engine'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/Users/jewelsjacobs/WebstormProjects/raml-api-designer/node_modules/osprey/node_modules/osprey-router/osprey-router.js:1:76)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.