Git Product home page Git Product logo

Comments (3)

malcolmsparks avatar malcolmsparks commented on June 23, 2024

Thanks for spotting this. Definitely one to fix.

On 8 June 2015 at 03:10, Frozenlock [email protected] wrote:

A path with ->TaggedMatch will not behave like vanilla bidi if
'swaggerized'.

path-for will stop working AND the resource will disappear from the
swagger UI.


Reply to this email directly or view it on GitHub
#13.

from yada.

Frozenlock avatar Frozenlock commented on June 23, 2024

A little update.
I tried the hello demo from the manual with yada version 1.0.0-20150903.093751-9.

Using this in combination with path-for works :

["/hello" (-> hello (bidi/tag :hello))]

;; ....

(path-for api :hello)

;=> "/hello-api/hello"

This is great!

However, it seems Swagger still doesn't work. I'm getting this error when trying to access the swagger.json file :

500: Unknown

No implementation of method: :request of protocol: #'yada.methods/Method found for class: nil

#error {
 :cause "No implementation of method: :request of protocol: #'yada.methods/Method found for class: nil"
 :via
 [{:type java.lang.IllegalArgumentException
   :message "No implementation of method: :request of protocol: #'yada.methods/Method found for class: nil"
   :at [clojure.core$_cache_protocol_fn invoke "core_deftype.clj" 554]}]
 :trace
 [[clojure.core$_cache_protocol_fn invoke "core_deftype.clj" 554]
  [yada.methods$eval35400$fn__35423$G__35391__35430 invoke "methods.clj" 34]
  [yada.core$invoke_method invoke "core.clj" 341]
  [yada.core$wrap_journaling$fn__36264$fn__36265 invoke "core.clj" 452]
  [manifold.deferred$eval19076$chain___19097 invoke "deferred.clj" 840]
  [manifold.deferred$eval19076$chain___19097 invoke "deferred.clj" 862]
  [manifold.deferred$eval19076$chain___19097 doInvoke "deferred.clj" 884]
  [clojure.lang.RestFn applyTo "RestFn.java" 151]
  [clojure.core$apply invoke "core.clj" 634]
  [manifold.deferred$eval19076$chain___19097$fn__19099 invoke "deferred.clj" 890]
  [manifold.deferred.Listener onSuccess "deferred.clj" 219]
  [manifold.deferred.Deferred$fn__18874 invoke "deferred.clj" 379]
  [clojure.lang.AFn run "AFn.java" 22]
  [io.aleph.dirigiste.Executor$Worker$1 run "Executor.java" 62]
  [manifold.executor$thread_factory$reify__18363$f__18364 invoke "executor.clj" 36]
  [clojure.lang.AFn run "AFn.java" 22]
  [java.lang.Thread run "Thread.java" 745]]}
yada

from yada.

Frozenlock avatar Frozenlock commented on June 23, 2024

Just tested and it appears to work now.

from yada.

Related Issues (20)

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.