GithubHelp home page GithubHelp logo

swadl's People

Contributors

ehearty avatar gimoh avatar

Stargazers

 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

swadl's Issues

License

Is there any chance you could add a license to this project?

weird failures with generated hyperlinked elements

I'm working with WADL generated by Jersey. I've come across a weird issue in chrome where it doesn't generate link to schema for complex elements correctly. I've tracked it down to the test for $ns-uri and starts-with($ns-uri, 'http://www.w3.org/XML/') = false inside the getHyperlinkedElement template. The weird thing is I can't reproduce this with test.wadl (and specifically application.wadl/xsd0.xsd) in the repo, even though they look the same (structure, elements, attributes).

Turns out boolean($ns-uri) is actually true when $ns-uri = '' in many XSLT engines including the one used in chrome (it is false in FF). See demonstration.

Based on info from stackoverflow I changed this test to not(normalize-space($ns-uri) = '') and starts-with($ns-uri, 'http://www.w3.org/XML/') = false which seems to work across browsers (at least FF and Chrome). I'll submit a PR with that change, not entirely sure why it's necessary though.

infinite recursion when grammar contains a class named "Link"

When the grammar (i.e. application.wadl/xsd0.xsd) contains a class named "link" displayResult will enter infinite recursion when adding "active_schema_link" class. This is because the class name generated for schema for "link" class is "schema_link" which is the same as the internal class name used for anchors linking to result schema.

cross-domain compatibility message

I am trying to use Artifactory's Jersey generated, which from the server is: http://server:port/artifactory/api/application.wadl. This is referenced https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API.

I downloaded the file, and edited the xmlDoc to point to a file I named at artifactory.wadl. And I get the following error:

Unable to load wadl. Check cross-domain compatibility.

I noticed the downloaded wadl references, has this:

<resources base="http://172.16.0.48:8081/artifactory/api/">

Is this the cause of the probelm. 172.16.0.48 is IP running from my vagrant box running artifactory.

build HTTP client into swadl

Hi Elena,

Are there any plans to build a HTTP client into swadl? Swagger has one, which lets you try out the services you can document with it - it'd be great if swadl had something like this too; it would help with testing and my app devs would stop nagging me that "your APIs are so hard to call" ;-)

I'm no good with frontend webby stuff, but I can conribute some XSL if that helps.

Cheers,

Uwe

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.